youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 35e22b6b32d0e662d486c9be8c76f6ea86f7cdd4
parent 323f82a7e05afcc3518706dc18016ebd97fbc052
Author: remitamine <remitamine@gmail.com>
Date:   Thu, 17 Dec 2015 12:51:50 +0100

[youku] check for the correct variable

Diffstat:
Myoutube_dl/extractor/youku.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/youku.py b/youtube_dl/extractor/youku.py @@ -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)