Greasy Fork镜像 is available in English.

討論 » 建立請求

release:txt - Reupload of script

§
發表於:2014-11-26

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.

woxxom管理員
§
發表於:2014-12-06
編輯:2014-12-06

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) {}
§
發表於:2014-12-06

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?

woxxom管理員
§
發表於:2014-12-06
編輯:2014-12-06

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

§
發表於:2015-02-04

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.

§
發表於:2015-02-05

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

§
發表於:2016-07-29

Now junodownload is broken also :(

§
發表於:2016-08-23

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);
}

§
發表於:2017-07-31

junodownload again is broken

§
發表於:2018-01-07

Fixed again.

Replace:

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

With:

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

§
發表於:2018-04-17

pleas fix discogs.com

發表回覆

登入以回覆

长期地址
遇到问题?请前往 GitHub 提 Issues。