youtube-dl

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

commit 8e686771af73876f93e44c52dc0dcaf99a56b6f7
parent 2933532c5bd4c49d325f3fa485e0b3c9ea080952
Author: Ricardo Garcia <sarbalap+freshmeat@gmail.com>
Date:   Sun, 22 Aug 2010 00:48:55 +0200

Decode the reason given on YouTube errors to avoid crashes (fixes issue #193)

Diffstat:
Myoutube-dl | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube-dl b/youtube-dl @@ -849,7 +849,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]) + self._downloader.trouble(u'ERROR: YouTube said: %s' % video_info['reason'][0].decode('utf-8')) else: self._downloader.trouble(u'ERROR: "token" parameter not in video info for unknown reason') return