From ff1c7fc9d3e54c3584117ce76e2b6ce9da030af2 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sat, 25 Sep 2021 03:31:35 +0530 Subject: Allow `0` in `--playlist-items` --- test/test_YoutubeDL.py | 1 + 1 file changed, 1 insertion(+) (limited to 'test/test_YoutubeDL.py') 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]) -- cgit v1.2.3