mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-29 05:32:00 +00:00
Fix YoukuIE in Python3 (and in general)
This commit is contained in:
parent
8588a86f9e
commit
e2a8ff24a9
1 changed files with 2 additions and 9 deletions
|
@ -3372,15 +3372,8 @@ class YoukuIE(InfoExtractor):
|
||||||
|
|
||||||
|
|
||||||
fileid = config['data'][0]['streamfileids'][format]
|
fileid = config['data'][0]['streamfileids'][format]
|
||||||
seg_number = len(config['data'][0]['segs'][format])
|
keys = [s['k'] for s in config['data'][0]['segs'][format]]
|
||||||
|
except (ValueError, KeyError):
|
||||||
keys=[]
|
|
||||||
for i in xrange(seg_number):
|
|
||||||
keys.append(config['data'][0]['segs'][format][i]['k'])
|
|
||||||
|
|
||||||
#TODO check error
|
|
||||||
#youku only could be viewed from mainland china
|
|
||||||
except:
|
|
||||||
self._downloader.trouble(u'ERROR: unable to extract info section')
|
self._downloader.trouble(u'ERROR: unable to extract info section')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue