mirror of
https://github.com/beetbox/beets.git
synced 2026-02-22 15:22:42 +01:00
Add logging
This commit is contained in:
parent
a88591824c
commit
9b8dbe8055
1 changed files with 7 additions and 1 deletions
|
|
@ -181,7 +181,12 @@ class ListenBrainzPlugin(BeetsPlugin):
|
|||
id = identifier.split("/")[-1]
|
||||
if playlist_type in ["Jams", "Exploration"]:
|
||||
listenbrainz_playlists.append(
|
||||
{"type": playlist_type, "date": date, "identifier": id}
|
||||
{
|
||||
"type": playlist_type,
|
||||
"date": date,
|
||||
"identifier": id,
|
||||
"title": title,
|
||||
}
|
||||
)
|
||||
return listenbrainz_playlists
|
||||
|
||||
|
|
@ -241,6 +246,7 @@ class ListenBrainzPlugin(BeetsPlugin):
|
|||
"""Returns a list of weekly playlists based on the index."""
|
||||
playlists = self.get_listenbrainz_playlists()
|
||||
playlist = self.get_playlist(playlists[index].get("identifier"))
|
||||
self._log.info(f"Getting {playlist.get('playlist').get('title')}")
|
||||
return self.get_tracks_from_playlist(playlist)
|
||||
|
||||
def get_weekly_exploration(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue