Skip to content

Commit a571fed

Browse files
committed
v0.23.11
1 parent f9be984 commit a571fed

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

dist/main.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// @supportURL https://github.com/Xmader/musescore-downloader/issues
66
// @updateURL https://msdl.librescore.org/install.user.js
77
// @downloadURL https://msdl.librescore.org/install.user.js
8-
// @version 0.23.10
8+
// @version 0.23.11
99
// @description download sheet music from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱
1010
// @author Xmader
1111
// @match https://musescore.com/*/*
@@ -331,6 +331,7 @@
331331
typeof GM[requiredMethod] !== 'undefined';
332332
};
333333

334+
const DISCORD_URL = 'https://discord.gg/kTyx6nUjMv';
334335
const escapeFilename = (s) => {
335336
return s.replace(/[\s<>:{}"/\\|?*~.\0\cA-\cZ]+/g, '_');
336337
};
@@ -27286,6 +27287,15 @@ Please pipe the document into a Node stream.\
2728627287
}
2728727288
else {
2728827289
setText(i18n('BTN_ERROR')());
27290+
// ask user to send Discord message
27291+
alert('❌Download Failed!\n\n' +
27292+
'Send your URL to the #dataset-bugs channel \n ' +
27293+
'in the LibreScore Community Discord server: ' + DISCORD_URL);
27294+
// open Discord on 'OK'
27295+
const a = document.createElement('a');
27296+
a.href = DISCORD_URL;
27297+
a.target = '_blank';
27298+
a.dispatchEvent(new MouseEvent('click'));
2728927299
}
2729027300
}
2729127301
btn.onclick = _onclick;

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "musescore-downloader",
3-
"version": "0.23.10",
3+
"version": "0.23.11",
44
"description": "download sheet music from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱",
55
"main": "dist/main.js",
66
"bin": "dist/cli.js",

0 commit comments

Comments
 (0)