aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-04-09 10:11:25 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-04-09 10:11:25 +0530
commit4abea8ca0af0773db9fb2372b272d497bd77b207 (patch)
treeca87ca276b8f7585163972c04541c5c25c794ab2 /yt_dlp/YoutubeDL.py
parentd46a3e7a127654b7537b0ab537f8c08ba16862ff (diff)
downloadhypervideo-pre-4abea8ca0af0773db9fb2372b272d497bd77b207.tar.lz
hypervideo-pre-4abea8ca0af0773db9fb2372b272d497bd77b207.tar.xz
hypervideo-pre-4abea8ca0af0773db9fb2372b272d497bd77b207.zip
[utils] `sanitize_path`: Fix when path is empty string
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 7af7a9fb9..d4f8d8cab 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -2237,7 +2237,7 @@ class YoutubeDL(object):
matches = LazyList(_check_formats(matches[::-1 if format_reverse else 1]))
try:
yield matches[format_idx - 1]
- except IndexError:
+ except LazyList.IndexError:
return
filters = [self._build_format_filter(f) for f in selector.filters]