diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-08-12 17:14:11 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-08-12 17:14:11 +0700 |
commit | e74e3b63e3cdb31a61af1fc21c703e912c029b96 (patch) | |
tree | 537d54b84afc6cfd91a392bbdfd6c559cc69ec1b /youtube_dl | |
parent | ac8491fcca6f9c0f6c7904e1cf13953f912eeb39 (diff) |
[YoutubeDL] Make sure format id is not empty
Diffstat (limited to 'youtube_dl')
-rwxr-xr-x | youtube_dl/YoutubeDL.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |