Open CrackedP0t opened 9 years ago
Just had a quick look & it doesn't appear there is an easy way to do this.
The main problem is that, so far as i can tell, there is no programmatic way to get an album id (which is needed for the embeds) from the url structure.
Example url: http://barryisland.bandcamp.com/album/dont-die-mr-robot-soundtrack Example embed url: https://bandcamp.com/EmbeddedPlayer/v=2/album=2079393697/size=large/tracklist=false/artwork=small
I had a look at their API ( https://bandcamp.com/developer ) although it appears to be discontinued. The other option would be directly scraping the page (since the embed urls are within the meta tags), although this is a bit clunky + the site doesn't have any access origin headers (meaning I guess it would need an optional permission).
Bandcamp has a variety of embedded players for tracks and albums, and it would be useful for RES to put them under links like with Youtube and Soundcloud.