mirror of
https://github.com/beetbox/beets.git
synced 2026-02-12 10:22:13 +01:00
Update spotify.py
This commit is contained in:
parent
6cda741143
commit
86daa0111c
1 changed files with 2 additions and 0 deletions
|
|
@ -242,6 +242,7 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin):
|
||||||
album_data = self._handle_response(
|
album_data = self._handle_response(
|
||||||
requests.get, self.album_url + spotify_id
|
requests.get, self.album_url + spotify_id
|
||||||
)
|
)
|
||||||
|
self._log.debug("album_data: {}", album_data)
|
||||||
if album_data["name"] == "":
|
if album_data["name"] == "":
|
||||||
self._log.debug("Album removed from Spotify: {}", album_id)
|
self._log.debug("Album removed from Spotify: {}", album_id)
|
||||||
return None
|
return None
|
||||||
|
|
@ -359,6 +360,7 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin):
|
||||||
track_data = self._handle_response(
|
track_data = self._handle_response(
|
||||||
requests.get, self.track_url + spotify_id
|
requests.get, self.track_url + spotify_id
|
||||||
)
|
)
|
||||||
|
self._log.debug("track_data: {}", track_data)
|
||||||
track = self._get_track(track_data)
|
track = self._get_track(track_data)
|
||||||
|
|
||||||
# Get album's tracks to set `track.index` (position on the entire
|
# Get album's tracks to set `track.index` (position on the entire
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue