mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 12:01:28 +00:00
[YoutubeDL] Force string conversion on non string video ids
This commit is contained in:
parent
9d51a0a9a1
commit
be6217b261
|
@ -1223,6 +1223,10 @@ def process_video_result(self, info_dict, download=True):
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue