From bb1ed67e2d67a4df8395afef6320fe49771addaa Mon Sep 17 00:00:00 2001 From: Rahul Ahuja Date: Sun, 20 Jan 2019 02:43:54 -0800 Subject: [PATCH] use open.spotify.com URL for `data_url` --- beetsplug/spotify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index 260d767ce..2e8d10f1a 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -203,7 +203,7 @@ class SpotifyPlugin(BeetsPlugin): day=day, label=response_data['label'], data_source='Spotify', - data_url=response_data['uri'], + data_url=response_data['external_urls']['spotify'], ) def _get_track(self, track_data): @@ -226,7 +226,7 @@ class SpotifyPlugin(BeetsPlugin): index=track_data['track_number'], medium_index=track_data['track_number'], data_source='Spotify', - data_url=track_data['uri'], + data_url=track_data['external_urls']['spotify'], ) def track_for_id(self, track_id):