From 276729049ef5b7aa386f53c81e59d10a5b53f011 Mon Sep 17 00:00:00 2001 From: Pavel Shumskii Date: Sun, 9 Jul 2023 16:22:49 +0300 Subject: [PATCH] Fix PLAYLIST_SUPPORT option not working (#262) --- ytdlbot/ytdl_bot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ytdlbot/ytdl_bot.py b/ytdlbot/ytdl_bot.py index 035850e..27805f3 100644 --- a/ytdlbot/ytdl_bot.py +++ b/ytdlbot/ytdl_bot.py @@ -352,8 +352,10 @@ def link_checker(url: str) -> str: if ( not PLAYLIST_SUPPORT - and re.findall(r"^https://www\.youtube\.com/channel/", Channel.extract_canonical_link(url)) - or "list" in url + and ( + re.findall(r"^https://www\.youtube\.com/channel/", Channel.extract_canonical_link(url)) + or "list" in url + ) ): return "Playlist or channel links are disabled."