|
|
|
@ -33,9 +33,10 @@ def download_background(background):
|
|
|
|
|
with YoutubeDL(ydl_opts) as ydl:
|
|
|
|
|
if background is None:
|
|
|
|
|
ydl.download("https://www.youtube.com/watch?v=n_Dv4JMiwK8")
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
if (
|
|
|
|
|
re.match("https://*youtube.com*", background) and background is not None
|
|
|
|
|
re.match("https://*youtube.com*", background)
|
|
|
|
|
and background is not None
|
|
|
|
|
):
|
|
|
|
|
ydl.download(background)
|
|
|
|
|
else: # if the link is not youtube link
|
|
|
|
|