fixed the regex pattern

pull/280/head
iaacornus 3 years ago
parent 5b4f8d0a0d
commit 8e4d6ac4bf
No known key found for this signature in database
GPG Key ID: 281739AE7252598C

@ -39,7 +39,7 @@ def download_background(background):
ydl.download("https://www.youtube.com/watch?v=n_Dv4JMiwK8")
else:
if (
re.match("https://*youtube.com*", background)
re.match("https://www.youtube.com/watch?v*", background)
and background is not None
):
ydl.download(background)

Loading…
Cancel
Save