honestbleeps / Reddit-Enhancement-Suite

Reddit Enhancement Suite
http://redditenhancementsuite.com
GNU General Public License v3.0
4.13k stars 881 forks source link

Embedded player for Bandcamp links to albums or tracks #2441

Open CrackedP0t opened 9 years ago

CrackedP0t commented 9 years ago

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.

thybag commented 8 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).