diff --git a/ytdlbot/ytdl_bot.py b/ytdlbot/ytdl_bot.py index 035850e8..27805f3b 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."