mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
extension(autoembed): fix flicky server
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user