From 33cd924d4808bbfad46b51317abce5093bc655ff Mon Sep 17 00:00:00 2001 From: sigma67 Date: Fri, 3 May 2024 21:44:27 +0200 Subject: [PATCH] fix random dude posting channels --- spotify_to_ytmusic/reddit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotify_to_ytmusic/reddit.py b/spotify_to_ytmusic/reddit.py index 3492516..8ecade5 100644 --- a/spotify_to_ytmusic/reddit.py +++ b/spotify_to_ytmusic/reddit.py @@ -52,7 +52,7 @@ def get_top_new(self, time="week"): if "open.spotify.com" in url: spotify.append(url) count += 1 - elif ("youtu.be" in url or "youtube.com" in url) and "playlist" not in url: + elif ("youtu.be" in url or "youtube.com" in url) and not any(x in url for x in ["playlist", "channel"]): youtube.append(url) youtube_pos.append(count) count += 1