mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2025-02-23 06:44:18 +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 (
|
if (
|
||||||
not PLAYLIST_SUPPORT
|
not PLAYLIST_SUPPORT
|
||||||
and re.findall(r"^https://www\.youtube\.com/channel/", Channel.extract_canonical_link(url))
|
and (
|
||||||
or "list" in url
|
re.findall(r"^https://www\.youtube\.com/channel/", Channel.extract_canonical_link(url))
|
||||||
|
or "list" in url
|
||||||
|
)
|
||||||
):
|
):
|
||||||
return "Playlist or channel links are disabled."
|
return "Playlist or channel links are disabled."
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue