Fix printing title etc.

This commit is contained in:
Philipp Hagemeister 2012-11-28 00:46:21 +01:00
parent 64a57846d3
commit 8cd10ac4ef
4 changed files with 14 additions and 9 deletions

View file

@ -339,7 +339,7 @@ class YoutubeIE(InfoExtractor):
return
if 'token' not in video_info:
if 'reason' in video_info:
self._downloader.trouble(u'ERROR: YouTube said: %s' % video_info['reason'][0].decode('utf-8'))
self._downloader.trouble(u'ERROR: YouTube said: %s' % video_info['reason'][0])
else:
self._downloader.trouble(u'ERROR: "token" parameter not in video info for unknown reason')
return