Fix PLAYLIST_SUPPORT option not working (#262)

This commit is contained in:
Pavel Shumskii 2023-07-09 16:22:49 +03:00 committed by GitHub
parent f8888d642a
commit 276729049e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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."