From 6039eae6a3a84c4f542fd065c5a64a294efa82fa Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 24 Nov 2024 18:43:50 +0600 Subject: [PATCH] api/rutube: catch a region lock error closes #930 --- api/src/processing/services/rutube.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/processing/services/rutube.js b/api/src/processing/services/rutube.js index 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" };