Replies: 5 comments 7 replies
-
Honestly, I am not sure why album_id and track_id information are not saved. Looks like the plugin is returning |
Beta Was this translation helpful? Give feedback.
-
It would be great to revive #4102 if anyone has the cycles to do so! The implementation got pretty far, but the sticking point was that it adds an extra API request for every track, which potentially makes things quite slow. I would suggest starting by putting this behind a config option (shouldn't be too hard, and would get the PR merged quickly). Then we could open an issue about doing the fetch in a more scalable way, such as the |
Beta Was this translation helpful? Give feedback.
-
Now that Spotify track and album ids are included (#4348), we can work on the next part. The most efficient way (at least for a large library) is to use the tracks API that can request information for up to 50 tracks in one call. We need to decide if we should make this call during the import or just have another separate call (e.g., |
Beta Was this translation helpful? Give feedback.
-
@sampsyo I was able to scrape something together. The code is far from optimal, but it is able to recover the popularity information and save it. Can you please take a look at it here before I submit it? I have included a |
Beta Was this translation helpful? Give feedback.
-
So, I have added |
Beta Was this translation helpful? Give feedback.
-
Spotify has a lot of music-related information that could be invaluable for discovery and creating "smarter" playlists.
I think those two pieces of information can greatly improve the quality of playlists that beets can generate.
To get started, we will need to save the album_id, and track_id information that Spotify uses to identify albums and tracks. The good news is that the Beets Spotify plugin already refers to album and track ids. I am surprised we are not saving this information anywhere after matching. Even saving this information would be a great starting point.
Once we have the identifiers, obtaining the audio features or popularity information is trivial. The information can be captured at the time of importing and updated on a regular basis (popularity is updated continuously).
I really hope we can get some of these details in Beets soon.
Beta Was this translation helpful? Give feedback.
All reactions