Skip to content

Commit

Permalink
Drop query string (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
anddam authored Apr 16, 2023
1 parent 2389598 commit dced0c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotify_dl/spotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def parse_spotify_url(url):
if url.startswith("spotify:"):
log.error("Spotify URI was provided instead of a playlist/album/track URL.")
sys.exit(1)
parsed_url = url.replace("https://open.spotify.com/", "")
parsed_url = url.replace("https://open.spotify.com/", "").split("?")[0]
item_type = parsed_url.split("/")[0]
item_id = parsed_url.split("/")[1]
return item_type, item_id
Expand Down

0 comments on commit dced0c0

Please sign in to comment.