aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-09-25 03:31:35 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-09-25 03:31:35 +0530
commitff1c7fc9d3e54c3584117ce76e2b6ce9da030af2 (patch)
tree4ad28946d3c0044be7bdd05f732630a4aa4078af /test
parent600e900300139406a9ad76190bfa4459afbffe6e (diff)
downloadhypervideo-pre-ff1c7fc9d3e54c3584117ce76e2b6ce9da030af2.tar.lz
hypervideo-pre-ff1c7fc9d3e54c3584117ce76e2b6ce9da030af2.tar.xz
hypervideo-pre-ff1c7fc9d3e54c3584117ce76e2b6ce9da030af2.zip
Allow `0` in `--playlist-items`
Diffstat (limited to 'test')
-rw-r--r--test/test_YoutubeDL.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py
index 210bf441c..6feca2ce2 100644
--- a/test/test_YoutubeDL.py
+++ b/test/test_YoutubeDL.py
@@ -1000,6 +1000,7 @@ class TestYoutubeDL(unittest.TestCase):
test_selection({'playlist_items': '2-4'}, [2, 3, 4])
test_selection({'playlist_items': '2,4'}, [2, 4])
test_selection({'playlist_items': '10'}, [])
+ test_selection({'playlist_items': '0'}, [])
# Tests for https://github.com/ytdl-org/youtube-dl/issues/10591
test_selection({'playlist_items': '2-4,3-4,3'}, [2, 3, 4])