From: Sergey M․ Date: Sat, 12 Aug 2017 10:14:11 +0000 (+0700) Subject: [YoutubeDL] Make sure format id is not empty X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=e74e3b63e3cdb31a61af1fc21c703e912c029b96;p=youtube-dl [YoutubeDL] Make sure format id is not empty --- diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 367ae3533..df7378f83 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -1500,7 +1500,7 @@ class YoutubeDL(object): sanitize_string_field(format, 'format_id') sanitize_numeric_fields(format) format['url'] = sanitize_url(format['url']) - if format.get('format_id') is None: + if not format.get('format_id'): format['format_id'] = compat_str(i) else: # Sanitize format_id from characters used in format selector expression