mirror of
https://github.com/soimort/you-get.git
synced 2025-02-11 20:52:31 +03:00
youku:fix error_code
This commit is contained in:
parent
10053e25b6
commit
f21fc05988
@ -184,9 +184,11 @@ class Youku(VideoExtractor):
|
||||
metadata0 = meta['data'][0]
|
||||
|
||||
if 'error_code' in metadata0 and metadata0['error_code']:
|
||||
if metadata0['error_code'] == -8:
|
||||
if metadata0['error_code'] == -8 or metadata0['error_code'] == -26:
|
||||
log.w('[Warning] This video can only be streamed within Mainland China!')
|
||||
log.w('Use \'-y\' to specify a proxy server for extracting stream data.\n')
|
||||
else:
|
||||
log.w(metadata0['error'])
|
||||
|
||||
self.title = metadata0['title']
|
||||
self.metadata = metadata0
|
||||
|
Loading…
Reference in New Issue
Block a user