xeruf / monsterutilities

Browse, stream and download Monstercat Songs
GNU General Public License v3.0
31 stars 2 forks source link

Fetch Tracks separately from Releases #46

Open xeruf opened 5 years ago

xeruf commented 5 years ago

Right now, it fetches the Tracks for each Release. But that leads to thousands of API calls with ~4000 Tracks being fetched, even though there are only ~2500. We could thus reduce the load on the client greatly if we would fetch them separately and then associate them.

defvs commented 4 years ago

Tracks are now directly linked with releases with API v2 and there is no way to not download them separately (like a "browse" for tracks), as you need to call the release endpoint to get the tracks for that release.

xeruf commented 4 years ago

Does that mean the same track could appear with multiple id's if it is part of multiple releases?

defvs commented 4 years ago

I'll have to check if same tracks in different releases have same or different IDs.