best way to save what you love
Svelte collaborationdownloaderinstagramjavascriptmusicredditsocial-mediasoundcloudsveltetiktoktwittertypescriptvideovimeovkwebappyoutubeyoutube-downloader
api/rutube: catch a region lock error
wukko6039eae6a3a8
diff --git a/api/src/processing/services/rutube.js b/api/src/processing/services/rutube.jsindex ed8c58da..5b502452 100644--- a/api/src/processing/services/rutube.js+++ b/api/src/processing/services/rutube.js@@ -33,6 +33,10 @@ export default async function(obj) {const play = await requestJSON(requestURL);if (!play) return { error: "fetch.fail" };+ if (play.detail?.type === "blocking_rule") {+ return { error: "content.video.region" };+ }+if (play.detail || !play.video_balancer) return { error: "fetch.empty" };if (play.live_streams?.hls) return { error: "content.video.live" };