best way to save what you love
Svelte collaborationdownloaderinstagramjavascriptmusicredditsocial-mediasoundcloudsveltetiktoktwittertypescriptvideovimeovkwebappyoutubeyoutube-downloader
api/url: return a diff error when youtube is disabled on main instance
wukko112866096cfa
diff --git a/api/src/processing/url.js b/api/src/processing/url.jsindex 64517099..8f0e7dc2 100644--- a/api/src/processing/url.js+++ b/api/src/processing/url.js@@ -181,6 +181,11 @@ export function extract(url) {}if (!env.enabledServices.has(host)) {+ // show a different message when youtube is disabled on official instances+ // as it only happens when shit hits the fan+ if (new URL(env.apiURL).hostname.endsWith(".imput.net") && host === "youtube") {+ return { error: "youtube.temporary_disabled" };+ }return { error: "service.disabled" };}