diff --git a/animekai/arabic/animekai.js b/animekai/arabic/animekai.js index 3f9d5fe..4af35d7 100644 --- a/animekai/arabic/animekai.js +++ b/animekai/arabic/animekai.js @@ -225,23 +225,23 @@ async function extractStreamUrl(url) { const decryptedUrls = await processStreams(streamUrls); const decryptedSoftsub = decryptedUrls.Softsub || decryptedUrls.Dub || decryptedUrls.Sub; - console.log(decryptedSoftsub); const headers = { "Referer": "https://anikai.to/", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36" }; if (decryptedSoftsub) { - const response = await fetchv2(decryptedSoftsub.replace("/e/", "/media/"), headers); + const mediaUrl = decryptedSoftsub.replace("/e/", "/media/"); + const response = await fetchv2(mediaUrl, headers); const responseJson = await response.json(); const result = responseJson?.result; const postData = { "text": result, - "Useragent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36" + "agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36" } - const finalResponse = await fetchv2("https://ilovekai.simplepostrequest.workers.dev/ilovebush", {}, "POST", JSON.stringify(postData)); + const finalResponse = await fetchv2("https://enc-dec.app/api/dec-mega", { "Content-Type": "application/json" }, "POST", JSON.stringify(postData)); const finalJson = await finalResponse.json(); const m3u8Link = finalJson?.result?.sources?.[0]?.file; @@ -258,10 +258,11 @@ async function extractStreamUrl(url) { } } - return JSON.stringify({ - stream: m3u8Link, - subtitles: "https://deno-proxies-sznvnpnxwhbv.deno.dev/?url="+ encodeURIComponent(subtitleUrl) -}); + const finalResult = { + stream: m3u8Link, + subtitles: subtitleUrl ? "https://deno-proxies-sznvnpnxwhbv.deno.dev/?url="+ encodeURIComponent(subtitleUrl) : null + }; + return JSON.stringify(finalResult); } return "error"; diff --git a/animekai/arabic/animekai.json b/animekai/arabic/animekai.json index e8205e0..97dbdc1 100644 --- a/animekai/arabic/animekai.json +++ b/animekai/arabic/animekai.json @@ -5,7 +5,7 @@ "name": "50/50", "icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3122kQwublLkZ6rf1fEpUP79BxZOFmH9BSA&s" }, - "version": "1.0.0", + "version": "1.0.1", "language": "Arabic", "streamType": "HLS", "quality": "1080p", diff --git a/animekai/dub/animekai.json b/animekai/dub/animekai.json index bd9c985..b90a12f 100644 --- a/animekai/dub/animekai.json +++ b/animekai/dub/animekai.json @@ -5,7 +5,7 @@ "name": "50/50", "icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3122kQwublLkZ6rf1fEpUP79BxZOFmH9BSA&s" }, - "version": "1.1.1", + "version": "1.1.3", "language": "English", "streamType": "HLS", "quality": "1080p", diff --git a/aniworld/AniWorldEngSub.json b/aniworld/AniWorldEngSub.json index e7e8543..a1d9335 100644 --- a/aniworld/AniWorldEngSub.json +++ b/aniworld/AniWorldEngSub.json @@ -1,22 +1,23 @@ { "sourceName": "AniWorld (ENG SUB)", - "iconUrl": "https://git.luna-app.eu/50n50/sources/raw/branch/main/aniworld/aniworld.png", + "iconUrl": "https://git.luna-app.eu/Cufiy/sora-modules/raw/branch/main/modules/aniworld/aniworld.png", "author": { "name": "Cufiy & Hamzo", "icon": "https://files.catbox.moe/ttj4fc.gif", "url": "https://github.com/JMcrafter26" }, - "version": "0.3.2", + "version": "0.3.3", "language": "English (SUB)", "streamType": "HLS", "quality": "720p", "baseUrl": "https://google.com", "searchBaseUrl": "https://aniworld.to/ajax/seriesSearch?keyword=%s", - "scriptUrl": "https://git.luna-app.eu/50n50/sources/raw/branch/main/aniworld/v2/AniWorldEngSub_v2.js", + "scriptUrl": "https://git.luna-app.eu/Cufiy/sora-modules/raw/branch/main/modules/aniworld/v2/AniWorldEngSub_v2.js", "asyncJS": true, "streamAsyncJS": false, "type": "anime", "supportsMojuru": true, "supportsSora": true, - "supportsLuna": true + "supportsLuna": true, + "supportsSoru": true } \ No newline at end of file diff --git a/aniworld/AniWorldGerDub.json b/aniworld/AniWorldGerDub.json index 5fb5a73..abacfab 100644 --- a/aniworld/AniWorldGerDub.json +++ b/aniworld/AniWorldGerDub.json @@ -1,22 +1,23 @@ { "sourceName": "AniWorld (GER DUB)", - "iconUrl": "https://git.luna-app.eu/50n50/sources/raw/branch/main/aniworld/aniworld.png", + "iconUrl": "https://git.luna-app.eu/Cufiy/sora-modules/raw/branch/main/modules/aniworld/aniworld.png", "author": { "name": "Cufiy & Hamzo", "icon": "https://files.catbox.moe/ttj4fc.gif", "url": "https://github.com/JMcrafter26" }, - "version": "0.3.2", + "version": "0.3.3", "language": "German (DUB)", "streamType": "HLS", "quality": "720p", "baseUrl": "https://google.com", "searchBaseUrl": "https://aniworld.to/ajax/seriesSearch?keyword=%s", - "scriptUrl": "https://git.luna-app.eu/50n50/sources/raw/branch/main/aniworld/v2/AniWorldGerDub_v2.js", + "scriptUrl": "https://git.luna-app.eu/Cufiy/sora-modules/raw/branch/main/modules/aniworld/v2/AniWorldGerDub_v2.js", "asyncJS": true, "streamAsyncJS": false, "type": "anime", "supportsMojuru": true, "supportsSora": true, - "supportsLuna": true + "supportsLuna": true, + "supportsSoru": true } \ No newline at end of file diff --git a/aniworld/AniWorldGerSub.json b/aniworld/AniWorldGerSub.json index 7b86c76..ea2bb0d 100644 --- a/aniworld/AniWorldGerSub.json +++ b/aniworld/AniWorldGerSub.json @@ -1,22 +1,23 @@ { "sourceName": "AniWorld (GER SUB)", - "iconUrl": "https://git.luna-app.eu/50n50/sources/raw/branch/main/aniworld/aniworld.png", + "iconUrl": "https://git.luna-app.eu/Cufiy/sora-modules/raw/branch/main/modules/aniworld/aniworld.png", "author": { "name": "Cufiy & Hamzo", "icon": "https://files.catbox.moe/ttj4fc.gif", "url": "https://github.com/JMcrafter26" }, - "version": "0.3.2", + "version": "0.3.3", "language": "German (SUB)", "streamType": "HLS", "quality": "720p", "baseUrl": "https://google.com", "searchBaseUrl": "https://aniworld.to/ajax/seriesSearch?keyword=%s", - "scriptUrl": "https://git.luna-app.eu/50n50/sources/raw/branch/main/aniworld/v2/AniWorldGerSub_v2.js", + "scriptUrl": "https://git.luna-app.eu/Cufiy/sora-modules/raw/branch/main/modules/aniworld/v2/AniWorldGerSub_v2.js", "asyncJS": true, "streamAsyncJS": false, "type": "anime", "supportsMojuru": true, "supportsSora": true, - "supportsLuna": true + "supportsLuna": true, + "supportsSoru": true } \ No newline at end of file diff --git a/aniworld/v2/AniWorldEngSub_v2.js b/aniworld/v2/_AniWorldEngSub_v2.js similarity index 99% rename from aniworld/v2/AniWorldEngSub_v2.js rename to aniworld/v2/_AniWorldEngSub_v2.js index 08ed90a..0eacf6d 100644 --- a/aniworld/v2/AniWorldEngSub_v2.js +++ b/aniworld/v2/_AniWorldEngSub_v2.js @@ -1,3 +1,11 @@ +// Moved to https://git.luna-app.eu/Cufiy/sora-modules/ + + + + + + + /////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////// Main Functions ////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////// diff --git a/aniworld/v2/AniWorldGerDub_v2.js b/aniworld/v2/_AniWorldGerDub_v2.js similarity index 99% rename from aniworld/v2/AniWorldGerDub_v2.js rename to aniworld/v2/_AniWorldGerDub_v2.js index 6a4951b..82dc9c3 100644 --- a/aniworld/v2/AniWorldGerDub_v2.js +++ b/aniworld/v2/_AniWorldGerDub_v2.js @@ -1,3 +1,10 @@ +// Moved to https://git.luna-app.eu/Cufiy/sora-modules/ + + + + + + /////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////// Main Functions ////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////// diff --git a/aniworld/v2/AniWorldGerSub_v2.js b/aniworld/v2/_AniWorldGerSub_v2.js similarity index 99% rename from aniworld/v2/AniWorldGerSub_v2.js rename to aniworld/v2/_AniWorldGerSub_v2.js index 41469a0..e1343c6 100644 --- a/aniworld/v2/AniWorldGerSub_v2.js +++ b/aniworld/v2/_AniWorldGerSub_v2.js @@ -1,3 +1,10 @@ +// Moved to https://git.luna-app.eu/Cufiy/sora-modules/ + + + + + + /////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////// Main Functions ////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////// diff --git a/comet/comet.js b/comet/comet.js index 395d406..93fad09 100644 --- a/comet/comet.js +++ b/comet/comet.js @@ -15,6 +15,36 @@ const allowEnglishInLanguages = false; // [true, false] const removeUnknownLanguages = false; // [true, false] // Settings end +function btoa(str) { + if (typeof globalThis !== "undefined" && typeof globalThis.btoa === "function" && globalThis.btoa !== btoa) { + return globalThis.btoa(str); + } + + if (typeof Buffer !== "undefined") { + return Buffer.from(str, "utf8").toString("base64"); + } + + const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + let result = ""; + let i = 0; + + while (i < str.length) { + const byte1 = str.charCodeAt(i++) & 0xff; + const hasByte2 = i < str.length; + const byte2 = hasByte2 ? str.charCodeAt(i++) & 0xff : 0; + const hasByte3 = i < str.length; + const byte3 = hasByte3 ? str.charCodeAt(i++) & 0xff : 0; + + const chunk = (byte1 << 16) | (byte2 << 8) | byte3; + result += chars[(chunk >> 18) & 63]; + result += chars[(chunk >> 12) & 63]; + result += hasByte2 ? chars[(chunk >> 6) & 63] : "="; + result += hasByte3 ? chars[chunk & 63] : "="; + } + + return result; +} + async function searchResults(keyword) { try { const moviesresponse = await fetchv2( @@ -186,8 +216,8 @@ async function extractStreamUrl(ID) { try { const endpoint = type === "movie" - ? "https://comet.elfhosted.com/" + encodedConfig + "/stream/movie/" + actualID + ".json" - : "https://comet.elfhosted.com/" + encodedConfig + "/stream/series/" + actualID + ".json"; + ? "https://comet.feels.legal/" + encodedConfig + "/stream/movie/" + actualID + ".json" + : "https://comet.feels.legal/" + encodedConfig + "/stream/series/" + actualID + ".json"; const response = await fetchv2(endpoint); const data = await response.json(); diff --git a/comet/comet.json b/comet/comet.json index e53ba30..931ad8b 100644 --- a/comet/comet.json +++ b/comet/comet.json @@ -5,7 +5,7 @@ "name": "50/50", "icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3122kQwublLkZ6rf1fEpUP79BxZOFmH9BSA&s" }, - "version": "1.0.1", + "version": "1.0.2", "language": "English", "streamType": "MKV", "quality": "4K", diff --git a/vidfast/vidfast.js b/vidfast/vidfast.js index 5690d6b..78d7c20 100644 --- a/vidfast/vidfast.js +++ b/vidfast/vidfast.js @@ -296,7 +296,8 @@ async function ilovearmpits(m3u8Url) { const headers = { "Accept": "*/*", "User-Agent": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Mobile Safari/537.36", - "Referer": "https://vidfast.pro/" + "Referer": "https://vidfast.pro/", + "X-Requested-With": "XMLHttpRequest" }; const response = await fetchv2(m3u8Url, headers);