[youku] (partly) fix #996

This commit is contained in:
Mort Yao 2016-03-21 16:38:36 +01:00
parent ebdc27bce5
commit c4491551b2

View File

@ -278,7 +278,7 @@ class Youku(VideoExtractor):
streamfileid = piece['fileid'] streamfileid = piece['fileid']
for no in range(0, len(segs)): for no in range(0, len(segs)):
k = segs[no]['key'] k = segs[no]['key']
assert k != -1 if k == -1: break # we hit the paywall; stop here
fileid, ep = self.__class__.generate_ep(no, streamfileid, fileid, ep = self.__class__.generate_ep(no, streamfileid,
sid, token) sid, token)
q = parse.urlencode(dict( q = parse.urlencode(dict(