Skip to content

Commit

Permalink
improve youtube match
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed May 4, 2024
1 parent 33cd924 commit 3c52f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotify_to_ytmusic/reddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 not any(x in url for x in ["playlist", "channel"]):
elif "youtu.be" in url or "youtube.com/watch?v=" in url:
youtube.append(url)
youtube_pos.append(count)
count += 1
Expand Down

0 comments on commit 3c52f1f

Please sign in to comment.