soundcloud: got rid of html parsing

This commit is contained in:
wukko
2023-08-23 00:49:02 +06:00
parent 0ef2c70c66
commit 749c00a691
2 changed files with 22 additions and 29 deletions

View File

@@ -9,12 +9,6 @@ export default function (inHost, inURL) {
url = `https://youtube.com/watch?v=${url.replace("https://youtu.be/", "")}`;
}
break;
case "goo":
if (url.startsWith("https://soundcloud.app.goo.gl/")) {
host = "soundcloud";
url = `https://soundcloud.com/${url.replace("https://soundcloud.app.goo.gl/", "").split('/')[0]}`
}
break;
case "vxtwitter":
case "x":
if (url.startsWith("https://x.com/")) {
@@ -33,7 +27,6 @@ export default function (inHost, inURL) {
}
break;
}
return {
host: host,
url: url