sabjorn / BandcampEnhancementSuite

A Chrome Extension providing extra functionality for Bandcamp
MIT License
43 stars 3 forks source link

Display release & track popularity #180

Open Sporradik opened 3 weeks ago

Sporradik commented 3 weeks ago

Would be nice to have some idea of how many people have purchased a release & tracks within a release.

This could potentially just be sorting releases and tracks by most purchased, but additionally / alternatively some sort of colored heat map or something would be pretty useful. If I discover a new label with a ton of releases to go through or a big compilation album, having some way to narrow in on the most liked first would be great.

From the discography page it would be great if both release purchases and individual track purchases were somehow counted towards each release's tally, even if differently.

Popular does not always equal good and it's possible some gems could be missed this way, but it could also help reduce some of the overwhelm of sorting through a ton of tracks/releases.

sabjorn commented 3 weeks ago

This should be doable with the BC API endpoints I've found. Specifically there is an endpoint to get the discography of a label and then an endpoint to check an album/tracks ownership. My only concern is that Bandcamp's rate limiting is... a black box. And so for a label with a lot of releases the process of getting this data could be very slow.

I've hit the rate limit previously when trying to build something else. It doesn't last long but it does stop you from even being able to load the bandcamp website.

Perhaps a highly regulated API client could work and then whenever you go to a label's page it would load up all the releases in a queue and get the data at a reasonable rate...

I will need to think about this a bit