mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[youku] check for the correct variable
This commit is contained in:
parent
323f82a7e0
commit
35e22b6b32
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ def retrieve_data(req_url, note):
|
|||
'Youku said: Sorry, this video is available in China only', expected=True)
|
||||
else:
|
||||
msg = 'Youku server reported error %i' % error.get('code')
|
||||
if error is not None:
|
||||
if error_note is not None:
|
||||
msg += ': ' + error_note
|
||||
raise ExtractorError(msg)
|
||||
|
||||
|
|
Loading…
Reference in a new issue