Browse Source
[YoutubeDL] Make sure format id is not empty
master
Sergey M․
7 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
|