Print a note if no ids given

This commit is contained in:
Ivan Habunek 2024-04-28 08:02:01 +02:00
parent cf580fde09
commit b8e3809810
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D

View File

@ -30,6 +30,10 @@ from twitchdl.twitch import Chapter, Clip, ClipAccessToken, Video
def download(ids: List[str], args: DownloadOptions): def download(ids: List[str], args: DownloadOptions):
if not ids:
print_log("No IDs to downlad given")
return
for video_id in ids: for video_id in ids:
download_one(video_id, args) download_one(video_id, args)