extension(autoembed): fix flicky server

This commit is contained in:
Swakshan
2025-02-09 22:56:24 +05:30
parent 802ee9619f
commit b9541dee97

View File

@@ -7,7 +7,7 @@ const mangayomiSources = [{
"typeSource": "multi", "typeSource": "multi",
"isManga": false, "isManga": false,
"itemType": 1, "itemType": 1,
"version": "1.2.0", "version": "1.2.1",
"dateFormat": "", "dateFormat": "",
"dateFormatLocale": "", "dateFormatLocale": "",
"pkgPath": "anime/src/all/autoembed.js" "pkgPath": "anime/src/all/autoembed.js"
@@ -326,8 +326,8 @@ class DefaultExtension extends MProvider {
if (media_type == "tv") { if (media_type == "tv") {
id = `${id}&season=${s}&episode=${e}` id = `${id}&season=${s}&episode=${e}`
} }
var api = `https://player.flicky.host/Server-main.php?id=${id}` var api = `https://flicky.host/player/desi.php?id=${id}`
var response = await new Client().get(api, { "Referer": "https://flicky.host/" }); var response = await new Client().get(api, { "Referer": "https://flicky.host/" ,"sec-fetch-dest":"iframe"});
if (response.statusCode != 200) { if (response.statusCode != 200) {
throw new Error("Video unavailable"); throw new Error("Video unavailable");