fix regex for www.youtube.com

fix #47
This commit is contained in:
BennyThink 2022-02-06 17:32:34 +08:00
parent e5b92287c3
commit 4a09104fe5
No known key found for this signature in database
GPG Key ID: 6CD0DBDA5235D481

View File

@ -241,7 +241,7 @@ def download_handler(client: "Client", message: "types.Message"):
message.reply_text("I think you should send me a link.", quote=True)
return
if re.findall(r"^https://www.youtube.com/channel/", VIP.extract_canonical_link(url)):
if re.findall(r"^https://www\.youtube\.com/channel/", VIP.extract_canonical_link(url)):
message.reply_text("Channel download is disabled now. Please send me individual video link.", quote=True)
red.update_metrics("reject_channel")
return