Skip to content

Commit

Permalink
Fix PLAYLIST_SUPPORT option not working (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
kran0 authored Jul 9, 2023
1 parent f8888d6 commit 2767290
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ytdlbot/ytdl_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."

Expand Down

0 comments on commit 2767290

Please sign in to comment.