[videott] Fix for python 3.2
authorSergey M․ <dstftw@gmail.com>
Thu, 21 May 2015 17:58:46 +0000 (23:58 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 21 May 2015 17:58:46 +0000 (23:58 +0600)
youtube_dl/extractor/videott.py

index ececc7ee0118932716ca9bdb06779cf94e6dc0ec..591024eaded0cdddbb0779bd942c0fa8f63d86a6 100644 (file)
@@ -43,7 +43,7 @@ class VideoTtIE(InfoExtractor):
 
         formats = [
             {
-                'url': base64.b64decode(res['u']).decode('utf-8'),
+                'url': base64.b64decode(res['u'].encode('utf-8')).decode('utf-8'),
                 'ext': 'flv',
                 'format_id': res['l'],
             } for res in settings['res'] if res['u']