From 080c5d48ed23c8482fac63e95604a96fd48c1912 Mon Sep 17 00:00:00 2001 From: dirkf Date: Mon, 9 Jan 2023 00:44:26 +0000 Subject: [PATCH] Allow filter[i] --- youtube_dl/YoutubeDL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 7851d1ebd..55d50ead6 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -1311,7 +1311,7 @@ class YoutubeDL(object): # or video only (imgur)) we will fallback to best/worst # {video,audio}-only format elif ctx['incomplete_formats']: - return fmts[format_idx] + return list(fmts)[format_idx] formats = list(ctx['formats']) if not formats: