#1
|
||||
|
||||
Extend Bandcamp plugin for embedded player URLs
Today Google sent me to a view of Bandcamp's "**External links are only visible to Support Staff**embedded player" and JD didn't know what to do with it.
(outdated, see below. Just leaving it in here in case it becomes useful Either in the sharing widget HTML Code:
<div id="sharedialog" title="Share"> <p> <a href="**External links are only visible to Support Staff** target="_blank">Embed this album[...]</a> [...] Code:
$("#sharedialog>p>a")[0].href.match(/(.+)\?/) Or the loading script HTML Code:
<script type="text/javascript" src="**External links are only visible to Support Staff** crossorigin="anonymous" nonce="gm6uKUDmFnIMq7HTyO1bpA==" data-player-data="{"linkback":"**External links are only visible to Support Staff**></script> Code:
$("script[data-player-data*='.bandcamp.com/album/']").attr("data-player-data").match(/"(https?:\/\/[^\s?&\/]+\.bandcamp\.com\/album\/[^\s?&\/]+?)"/) Holy shit, that's a long list of arguments. Hold on, the individual songs are also listed in there Code:
JSON.parse($("script[data-player-data*='.bandcamp.com/album/']").attr("data-player-data")).tracks Code:
{ "file": { "<format, like 'mp3-128'>": string }, "track_streaming": boolean, "tracknum": number, "title_link": string, "preorder_download_track": boolean, "id": number, "encodings_id": number, "art_id": ?, "artist": string, "title": string, "duration": number } |
#2
|
||||
|
||||
@svArtist: so you're asking to add support for embedded player url format, so you can just copy that url and let JDownloader do its work?
so we can add support for bandcamp.com/EmbeddedPlayer.html... urls
__________________
JD-Dev & Server-Admin |
#3
|
||||
|
||||
Added support for such URLs.
Bitte auf das nächste CORE-Update warten! Please wait for the next CORE-Update! Wartest du auf einen angekündigten Bugfix oder ein neues Feature? Updates werden nicht immer sofort bereitgestellt! Bitte lies unser Update FAQ! | Please read our Update FAQ! --- Are you waiting for recently announced changes to get released? Updates to not necessarily get released immediately! Bitte lies unser Update FAQ! | Please read our Update FAQ! -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#4
|
||||
|
||||
Oh, that was fast!
I was just about to reply to the first message, then I saw the second one Thank youuu <3 |
#5
|
||||
|
||||
CORE-Updates have been released!
All announced bugfixes and features are live! Please update your JDownloader and report any issues you find asap. CORE-Updates wurden released! Alle angekündigten Bugfixes/Features sind nun verfügbar! Bitte JDownloader updaten und eventuelle Bugs schnellstmöglich an uns melden. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#6
|
||||
|
||||
Quote:
Tested and confirmed for this one |
#7
|
||||
|
||||
Thanks for your feedback!
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
Thread Tools | |
Display Modes | |
|
|