youtube-dl

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

commit be6217b26142491232fb697b125015d45437832d
parent 9d51a0a9a19f07997cfb3ff1bb9fc9c1669a455c
Author: Sergey M․ <dstftw@gmail.com>
Date:   Thu,  9 Jun 2016 05:34:19 +0700

[YoutubeDL] Force string conversion on non string video ids

Diffstat:
Myoutube_dl/YoutubeDL.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py @@ -1223,6 +1223,10 @@ class YoutubeDL(object): if 'title' not in info_dict: raise ExtractorError('Missing "title" field in extractor result') + if not isinstance(info_dict['id'], compat_str): + self.report_warning('"id" field is not a string - forcing string conversion') + info_dict['id'] = compat_str(info_dict['id']) + if 'playlist' not in info_dict: # It isn't part of a playlist info_dict['playlist'] = None