add message to inform that background video is already downloaded

this is when the user give an input to -b parameter even there is already downloaded video. Although feature to be able to store multiple background video is suggested, which I plan to work to
pull/280/head
iaacornus 3 years ago
parent dbb1617432
commit 548c06e81e
No known key found for this signature in database
GPG Key ID: 281739AE7252598C

@ -28,7 +28,11 @@ def download_background(background):
"merge_output_format": "mp4",
}
if background is not None or not Path("assets/mp4/background.mp4").is_file():
background_check = Path("assets/mp4/background.mp4").is_file()
if background is not None or not background_check:
if background_check:
print_substep("Background video is already downloaded! Replacing ...")
try:
with YoutubeDL(ydl_opts) as ydl:
if background is None:

Loading…
Cancel
Save