[youku] check for the correct variable

totalwebcasting
remitamine 8 years ago
parent 323f82a7e0
commit 35e22b6b32

@ -221,7 +221,7 @@ class YoukuIE(InfoExtractor):
'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…
Cancel
Save