Skip to content

Commit

Permalink
Merge pull request #64 from minheed-s/main
Browse files Browse the repository at this point in the history
Fixed the tool not creating a new playlist when the provided playlist name does not already exist
  • Loading branch information
linsomniac committed May 6, 2024
2 parents 5496cb6 + 4e87dfc commit 6a49e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotify2ytmusic/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def copy_playlist(
ytmusic_playlist_id = get_playlist_id_by_name(yt, pl_name)
print(f"Looking up playlist '{pl_name}': id={ytmusic_playlist_id}")

if ytmusic_playlist_id == "":
if ytmusic_playlist_id is None:
if pl_name == "":
print("No playlist name or ID provided, creating playlist...")
spotify_pls: dict = load_playlists_json()
Expand Down

0 comments on commit 6a49e3d

Please sign in to comment.