best way to save what you love
Svelte collaborationdownloaderinstagramjavascriptmusicredditsocial-mediasoundcloudsveltetiktoktwittertypescriptvideovimeovkwebappyoutubeyoutube-downloader
fixed the overlapping issue with short soundcloud links
wukkoa2e721228568
diff --git a/src/modules/processing/services/soundcloud.js b/src/modules/processing/services/soundcloud.jsindex 0c9434d9..f285f56c 100644--- a/src/modules/processing/services/soundcloud.js+++ b/src/modules/processing/services/soundcloud.js@@ -36,8 +36,7 @@ async function findClientID() {export default async function(obj) {let html;if (!obj.author && !obj.song && obj.shortLink) {- html = await fetch(`https://soundcloud.app.goo.gl/${obj.shortLink}/`).then((r) => { return r.status === 404 ? false : r.text() }).catch(() => { return false });- if (!html) html = await fetch(`https://on.soundcloud.com/${obj.shortLink}/`).then((r) => { return r.status === 404 ? false : r.text() }).catch(() => { return false })+ html = await fetch(`https://on.soundcloud.com/${obj.shortLink}/`).then((r) => { return r.status === 404 ? false : r.text() }).catch(() => { return false });}if (obj.author && obj.song) {html = await fetch(`https://soundcloud.com/${obj.author}/${obj.song}${obj.accessKey ? `/s-${obj.accessKey}` : ''}`).then((r) => { return r.text() }).catch(() => { return false });diff --git a/src/test/tests.json b/src/test/tests.jsonindex 158a0ea5..131e1614 100644--- a/src/test/tests.json+++ b/src/test/tests.json@@ -280,6 +280,14 @@"code": 200,"status": "stream"}+ }, {+ "name": "on.soundcloud link",+ "url": "https://on.soundcloud.com/AG4c",+ "params": {},+ "expected": {+ "code": 200,+ "status": "stream"+ }}],"youtube": [{"name": "4k video (h264, 1440)",