id might be an int in preferences in preferred_fmt_ids

This commit is contained in:
Eric Le Lay 2020-01-05 17:56:09 +01:00
parent df7d3a6e33
commit 88d7dabb4b
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ def get_real_download_url(url, preferred_fmt_ids=None):
fmt_id_url_map = dict(fmt_id_url_map)
for id in preferred_fmt_ids:
if re.search('\+', id):
if re.search('\+', str(id)):
# skip formats that contain a + (136+140)
continue
id = int(id)