Skip to content

Commit

Permalink
reject list as well
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyThink committed Dec 24, 2022
1 parent c8c04b4 commit 9b9da44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ytdlbot/ytdl_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ def download_handler(client: "Client", message: "types.Message"):
# client.send_message(chat_id, text, disable_web_page_preview=True, reply_markup=markup)
# return

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)
if re.findall(r"^https://www\.youtube\.com/channel/", VIP.extract_canonical_link(url)) or "list" in url:
message.reply_text("Channel/list download is disabled now. Please send me individual video link.", quote=True)
red.update_metrics("reject_channel")
return
# non vip user, consume too many token
Expand Down

0 comments on commit 9b9da44

Please sign in to comment.