mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2025-02-22 14:23:20 +08:00
Fix PLAYLIST_SUPPORT option not working (#262)
This commit is contained in:
parent
f8888d642a
commit
276729049e
1 changed files with 4 additions and 2 deletions
|
@ -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."
|
||||
|
||||
|
|
Loading…
Reference in a new issue