5
5
// @supportURL https://github.com/Xmader/musescore-downloader/issues
6
6
// @updateURL https://msdl.librescore.org/install.user.js
7
7
// @downloadURL https://msdl.librescore.org/install.user.js
8
- // @version 0.23.13
8
+ // @version 0.23.15
9
9
// @description download sheet music from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱
10
10
// @author Xmader
11
11
// @match https://musescore.com/*/*
331
331
typeof GM[requiredMethod] !== 'undefined';
332
332
};
333
333
334
- const DISCORD_URL = 'https://discord.gg/kTyx6nUjMv ';
334
+ const DISCORD_URL = 'https://discord.gg/gSsTUvJmD8 ';
335
335
const escapeFilename = (s) => {
336
336
return s.replace(/[\s<>:{}"/\\|?*~.\0\cA-\cZ]+/g, '_');
337
337
};
@@ -27036,7 +27036,8 @@ Please pipe the document into a Node stream.\
27036
27036
},
27037
27037
];
27038
27038
27039
- const _getLink = (scorepack) => {
27039
+ const _getLink = (indexingInfo) => {
27040
+ const { scorepack } = JSON.parse(indexingInfo);
27040
27041
return `https://librescore.org/score/${scorepack}`;
27041
27042
};
27042
27043
const getLibreScoreLink = (scoreinfo, _fetch = getFetch()) => __awaiter(void 0, void 0, void 0, function* () {
@@ -27313,7 +27314,7 @@ Please pipe the document into a Node stream.\
27313
27314
class ScoreInfo {
27314
27315
constructor() {
27315
27316
this.RADIX = 20;
27316
- this.INDEX_RADIX = 128 ;
27317
+ this.INDEX_RADIX = 32 ;
27317
27318
this.store = new Map();
27318
27319
}
27319
27320
get idLastDigit() {
@@ -27329,7 +27330,7 @@ Please pipe the document into a Node stream.\
27329
27330
return `https://ipfs.infura.io:5001/api/v0/block/stat?arg=${this.getMsczIpfsRef(mainCid)}`;
27330
27331
}
27331
27332
getScorepackRef(mainCid) {
27332
- return `/ipfs/${mainCid}/index/${(+this.id) % this.INDEX_RADIX}/${this.id}/scorepack `;
27333
+ return `/ipfs/${mainCid}/index/${(+this.id) % this.INDEX_RADIX}/${this.id}`;
27333
27334
}
27334
27335
}
27335
27336
class ScoreInfoInPage extends ScoreInfo {
0 commit comments