feat: restore player, voiceover and episode saving for custom player

This commit is contained in:
Kentai Radiquum 2025-03-15 23:10:30 +05:00
parent cdce98b7e6
commit 03af84fd2d
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
5 changed files with 90 additions and 27 deletions

View file

@ -29,7 +29,7 @@ export default async function middleware(
let data = null;
path = decodeURIComponent(path);
if ((isHTML || isNotAnixart) && !path.startsWith("https://kodik.info")) {
if ((isHTML || isNotAnixart) && !(path.startsWith("https://kodik.info") || path.startsWith("https://aniqit.com"))) {
return new Response(JSON.stringify({ message: "URL not allowed" }), {
status: 403,
headers: {
@ -85,7 +85,7 @@ export default async function middleware(
path = decodeURIComponent(path);
if (isNotAnixart) {
if (!path.startsWith("https://kodik.info")) {
if (!(path.startsWith("https://kodik.info") || path.startsWith("https://aniqit.com"))) {
return new Response(JSON.stringify({ message: "URL not allowed" }), {
status: 403,
headers: {