Discussions » Creation Requests

release:txt - Reupload of script

§
Posted: 26 November 2014

release:txt - Reupload of script

Reupload of script from defunct userscript.org.

http://userscripts-mirror.org/scripts/show/156420

The userscripts.org version doesn't list any license, but I don't know how to contact the author DMBoxer. The last version is 2014.06.06.

It doesn't work for Soundcloud after last changes there and needs to be updated.

There is no comparable script as "the music plain text .txt/.nfo helper" around. At userscripts-mirror.org is a good documentation what this script does.

woxxomMod
§
Posted: 06 Desember 2014
Edited: 06 Desember 2014

Seems to be working on soundcloud if I dumbly wrap the code in try/catch:

Before:

    if (rlsInfo.getElementsByClassName('listenContent')[0].querySelector('button.sc-button-download') !== null) {
        rls.format = 'Free download [' + htmldoc.URL.tidyurl(true) + '/download]';
    } else if (rlsInfo.querySelector('div.sc-button-group>a.soundActions__purchaseLink') !== null) {
        rls.format = rlsInfo.querySelector('div.sc-button-group>a.soundActions__purchaseLink').title.trim() + ' [' + rlsInfo.querySelector('div.sc-button-group>a.soundActions__purchaseLink').href.tidyurl() + ']';
    }

After:

    try {
        if (rlsInfo.getElementsByClassName('listenContent')[0].querySelector('button.sc-button-download') !== null) {
            rls.format = 'Free download [' + htmldoc.URL.tidyurl(true) + '/download]';
        } else if (rlsInfo.querySelector('div.sc-button-group>a.soundActions__purchaseLink') !== null) {
            rls.format = rlsInfo.querySelector('div.sc-button-group>a.soundActions__purchaseLink').title.trim() + ' [' + rlsInfo.querySelector('div.sc-button-group>a.soundActions__purchaseLink').href.tidyurl() + ']';
        }
    } catch(e) {}
§
Posted: 06 Desember 2014

Thank you, basically it works on Soundcloud again and does not stop at "page loading…".

But Duration, Tags and the full Description are still missing. As Tags and the Description are shown on a special page now (after clicking "Read more"), maybe this is the problem?

woxxomMod
§
Posted: 06 Desember 2014
Edited: 06 Desember 2014

Sorry, I don't know, maybe someone else will inspect the script.

§
Posted: 04 Februari 2015

release:txt - the music plain text .txt/.nfo helper for discogs, beatport, mixcloud, junodownload, bandcamp & soundcloud

After recent changes the script is working again in Soundcloud, but unfortunately Mixcloud doesn't work anymore. Especially the possibility to get the tracklist if available for the corresponding mix in Mixcloud was really great.

Could someone help and make the script working for Mixcloud again?

Any help much appreciated.

§
Posted: 05 Februari 2015

pleas help! beatport not working, url redirect on https://pro.beatport.com

§
Posted: 29 Juli 2016

Now junodownload is broken also :(

§
Posted: 23 Agustus 2016

Did the best I could to fix it, seems to work so far. Replace from line:

// collect tracklist information from items in div id='product_tracklist'

With:

// collect tracklist information from items in div id='product_tracklist'
// note: loop stops at .length - 1 as we skip the last non-track 'Entire Release:' shopping line in the tracklist list
trackrows = htmldoc.getElementById('product_tracklist').getElementsByClassName('product_tracklist_records');
trackrows = htmldoc.querySelectorAll('tbody[itemprop=tracks]>tr');
for (t = 0; t < trackrows.length - 1; t += 1) {
trk = new Track();
trk.number = trackrows[t].getElementsByClassName('col-title')[0].textContent.tidyline();
if (trk.number.split('. ').length > 1) {
trk.title = trk.number.split('. ')[1];
trk.number = trk.number.split('. ')[0];
}
if (trk.title.split(' - ').length > 1) {
// compilation: .title 'artist - title' => .artist & .title
trk.artist = trk.title.split(' - ')[0];
trk.title = trk.title.split(' - ')[1];
}

trk.bpm = trackrows[t].getElementsByClassName('col-bpm')[0].textContent.tidyline();
trk.time = trackrows[t].getElementsByClassName('col-length')[0].textContent.tidyline();
rls.tracklist.push(trk);
}

§
Posted: 31 Juli 2017

junodownload again is broken

§
Posted: 07 Januari 2018

Fixed again.

Replace:

trackrows = htmldoc.querySelectorAll('tbody[itemprop=tracks]>tr');

With:

trackrows = htmldoc.querySelectorAll('tbody[ua_location=tracklist]>tr');

§
Posted: 17 April 2018

pleas fix discogs.com

Post reply

Sign in to post a reply.