update
Fetch and Save Remote Content / fetch (push) Successful in 39s
Sync Versions to index.json / sync-versions (push) Failing after 54s

This commit is contained in:
aka paul
2026-05-27 20:30:23 +02:00
parent caffaabc88
commit 597f279e49
113 changed files with 1207 additions and 980 deletions
+119 -20
View File
@@ -25,8 +25,6 @@ async function searchResults(keyword) {
href
});
});
//console.log(results);
console.log(JSON.stringify(results));
return JSON.stringify(results);
} catch (error) {
throw error;
@@ -53,11 +51,8 @@ async function extractDetails(url) {
alias: 'N/A',
airdate
});
//console.log(details);
console.log(JSON.stringify(details));
return JSON.stringify(details);
} catch (error) {
console.error('Error extracting details:', error);
return JSON.stringify([]);
}
}
@@ -82,28 +77,132 @@ async function extractEpisodes(url) {
}
});
}
//console.log(episodes);
console.log(JSON.stringify(episodes));
return JSON.stringify(episodes);
}
async function extractStreamUrl(url) {
const response = await fetchv2(url);
const data = await response.text();
const iframeMatch = data.match(/var copyTexti= \['<iframe[^>]*src="(https:\/\/tukipasti\.com\/[^"]+)"[^>]*><\/iframe>'\]/);
try {
const response = await fetchv2(url);
const html = await response.text();
if (iframeMatch) {
const iframeUrl = iframeMatch[1];
const responseTwo = await fetchv2(iframeUrl);
const dataTwo = await responseTwo.text();
const m3u8Match = dataTwo.match(/var urlPlay = '([^']+)'/);
const downloadNaviMatch = html.match(/<div class="download_navi">([\s\S]*?)<\/div>/);
if (!downloadNaviMatch) return null;
if (m3u8Match) {
const m3u8Url = m3u8Match[1];
console.log(m3u8Url);
return m3u8Url;
const serverMatch = downloadNaviMatch[1].match(/<div class="les-content">\s*<a href="([^"]+)"[^>]*>Server 1<\/a>/);
if (!serverMatch) return null;
const headers = {
"Referer": "https://ahs.turkish123.com/"
};
const serverUrl = serverMatch[1].replace('/d/', '/f/');
const responseTwo = await fetchv2(serverUrl, headers);
const htmlTwo = await responseTwo.text();
const obfuscatedScript = htmlTwo.match(/<script[^>]*>\s*(eval\(function\(p,a,c,k,e,d.*?\)[\s\S]*?)<\/script>/);
if (obfuscatedScript) {
const unpacked = unpack(obfuscatedScript[1]);
const m3u8Match = unpacked.match(/file\s*:\s*"([^"]+)"/) || unpacked.match(/src\s*:\s*"([^"]+)"/);
if (m3u8Match) {
return m3u8Match[1];
}
}
return null;
} catch (error) {
return null;
}
}
/*
* DEOBFUSCATOR CODE
*/
class Unbaser {
constructor(base) {
this.ALPHABET = {
62: "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
95: "' !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~'",
};
this.dictionary = {};
this.base = base;
if (36 < base && base < 62) {
this.ALPHABET[base] = this.ALPHABET[base] ||
this.ALPHABET[62].substr(0, base);
}
if (2 <= base && base <= 36) {
this.unbase = (value) => parseInt(value, base);
}
else {
try {
[...this.ALPHABET[base]].forEach((cipher, index) => {
this.dictionary[cipher] = index;
});
}
catch (er) {
throw Error("Unsupported base encoding.");
}
this.unbase = this._dictunbaser;
}
}
_dictunbaser(value) {
let ret = 0;
[...value].reverse().forEach((cipher, index) => {
ret = ret + ((Math.pow(this.base, index)) * this.dictionary[cipher]);
});
return ret;
}
}
function unpack(source) {
let { payload, symtab, radix, count } = _filterargs(source);
if (count != symtab.length) {
throw Error("Malformed p.a.c.k.e.r. symtab.");
}
let unbase;
try {
unbase = new Unbaser(radix);
}
catch (e) {
throw Error("Unknown p.a.c.k.e.r. encoding.");
}
function lookup(match) {
const word = match;
let word2;
if (radix == 1) {
word2 = symtab[parseInt(word)];
}
else {
word2 = symtab[unbase.unbase(word)];
}
return word2 || word;
}
source = payload.replace(/\b\w+\b/g, lookup);
return _replacestrings(source);
function _filterargs(source) {
const juicers = [
/}\('(.*)', *(\d+|\[\]), *(\d+), *'(.*)'\.split\('\|'\), *(\d+), *(.*)\)\)/,
/}\('(.*)', *(\d+|\[\]), *(\d+), *'(.*)'\.split\('\|'\)/,
];
for (const juicer of juicers) {
const args = juicer.exec(source);
if (args) {
let a = args;
try {
return {
payload: a[1],
symtab: a[4].split("|"),
radix: parseInt(a[2]),
count: parseInt(a[3]),
};
}
catch (ValueError) {
throw Error("Corrupted p.a.c.k.e.r. data.");
}
}
}
throw Error("Could not make sense of p.a.c.k.e.r data (unexpected code structure)");
}
function _replacestrings(source) {
return source;
}
return null;
}
+1 -1
View File
@@ -5,7 +5,7 @@
"name": "50/50",
"icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3122kQwublLkZ6rf1fEpUP79BxZOFmH9BSA&s"
},
"version": "1.0.6",
"version": "1.0.7",
"language": "Turkish",
"streamType": "HLS",
"quality": "8K UHD",