Skip to content

Commit

Permalink
v0.24.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmader committed Jul 24, 2021
1 parent 5c86de8 commit 51f257d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
15 changes: 13 additions & 2 deletions dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// @supportURL https://github.com/Xmader/musescore-downloader/issues
// @updateURL https://msdl.librescore.org/install.user.js
// @downloadURL https://msdl.librescore.org/install.user.js
// @version 0.24.2
// @version 0.24.3
// @description download sheet music from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱
// @author Xmader
// @icon https://librescore.org/img/icons/logo.svg
Expand Down Expand Up @@ -26657,7 +26657,18 @@ Please pipe the document into a Node stream.\
}
}
}
return magic;
try {
return yield useTimeout(magic, 5 * 1000 /* 5s */);
}
catch (_b) {
console$1.error(type, 'token timeout');
switch (type) {
// try hard-coded tokens
case 'img': return '8c022bdef45341074ce876ae57a48f64b86cdcf5';
case 'midi': return '38fb9efaae51b0c83b5bb5791a698b48292129e7';
case 'mp3': return '63794e5461e4cfa046edfbdddfccc1ac16daffd2';
}
}
});
const getFileUrl = (id, type, index = 0) => __awaiter(void 0, void 0, void 0, function* () {
const url = getApiUrl(id, type, index);
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "musescore-downloader",
"version": "0.24.2",
"version": "0.24.3",
"description": "download sheet music from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱",
"main": "dist/main.js",
"bin": "dist/cli.js",
Expand Down

0 comments on commit 51f257d

Please sign in to comment.