mirror of
https://github.com/LucBerge/yt-dlp.git
synced 2025-03-17 19:57:52 +03:00
parent
7265a2190c
commit
4c3f8c3fb6
2 changed files with 3 additions and 1 deletions
|
@ -2392,6 +2392,8 @@ class YoutubeDL(object):
|
|||
|
||||
sanitize_string_field(info_dict, 'id')
|
||||
sanitize_numeric_fields(info_dict)
|
||||
if (info_dict.get('duration') or 0) <= 0 and info_dict.pop('duration', None):
|
||||
self.report_warning('"duration" field is negative, there is an error in extractor')
|
||||
|
||||
if 'playlist' not in info_dict:
|
||||
# It isn't part of a playlist
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue