mirror of
https://github.com/wukko/cobalt.git
synced 2025-01-22 10:46:19 +01:00
parent
2ed52a161e
commit
6039eae6a3
1 changed files with 4 additions and 0 deletions
|
@ -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" };
|
||||
|
||||
|
|
Loading…
Reference in a new issue