mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
Fix
This commit is contained in:
@@ -12,7 +12,7 @@ class KissKh extends MProvider {
|
|||||||
};
|
};
|
||||||
final res = await http('GET', json.encode(data));
|
final res = await http('GET', json.encode(data));
|
||||||
final jsonRes = json.decode(res);
|
final jsonRes = json.decode(res);
|
||||||
final datas = jsonRes["data"] as List;
|
final datas = jsonRes["data"];
|
||||||
List<MManga> animeList = [];
|
List<MManga> animeList = [];
|
||||||
|
|
||||||
for (var data in datas) {
|
for (var data in datas) {
|
||||||
@@ -38,7 +38,7 @@ class KissKh extends MProvider {
|
|||||||
};
|
};
|
||||||
final res = await http('GET', json.encode(data));
|
final res = await http('GET', json.encode(data));
|
||||||
final jsonRes = json.decode(res);
|
final jsonRes = json.decode(res);
|
||||||
final datas = jsonRes["data"] as List;
|
final datas = jsonRes["data"];
|
||||||
|
|
||||||
List<MManga> animeList = [];
|
List<MManga> animeList = [];
|
||||||
|
|
||||||
@@ -78,23 +78,19 @@ class KissKh extends MProvider {
|
|||||||
@override
|
@override
|
||||||
Future<MManga> getDetail(MSource source, String url) async {
|
Future<MManga> getDetail(MSource source, String url) async {
|
||||||
final statusList = [
|
final statusList = [
|
||||||
{
|
{"Ongoing": 0, "Completed": 1}
|
||||||
"Ongoing": 0,
|
|
||||||
"Completed": 1,
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
final data = {"url": url};
|
final data = {"url": url};
|
||||||
final res = await http('GET', json.encode(data));
|
final res = await http('GET', json.encode(data));
|
||||||
MManga anime = MManga();
|
MManga anime = MManga();
|
||||||
final jsonRes = json.decode(res);
|
final jsonRes = json.decode(res);
|
||||||
final status = jsonRes["status"] ?? "";
|
final status = jsonRes["status"] ?? "";
|
||||||
print(status);
|
|
||||||
anime.description = jsonRes["description"];
|
anime.description = jsonRes["description"];
|
||||||
anime.status = parseStatus(status, statusList);
|
anime.status = parseStatus(status, statusList);
|
||||||
anime.imageUrl = jsonRes["thumbnail"];
|
anime.imageUrl = jsonRes["thumbnail"];
|
||||||
var episodes = jsonRes["episodes"];
|
var episodes = jsonRes["episodes"];
|
||||||
String type = jsonRes["type"];
|
String type = jsonRes["type"];
|
||||||
final episodesCount = jsonRes["episodesCount"];
|
final episodesCount = jsonRes["episodesCount"] as int;
|
||||||
final containsAnime = type.contains("Anime");
|
final containsAnime = type.contains("Anime");
|
||||||
final containsTVSeries = type.contains("TVSeries");
|
final containsTVSeries = type.contains("TVSeries");
|
||||||
final containsHollywood = type.contains("Hollywood");
|
final containsHollywood = type.contains("Hollywood");
|
||||||
@@ -2,7 +2,7 @@ import '../../../../model/source.dart';
|
|||||||
import '../../../../utils/utils.dart';
|
import '../../../../utils/utils.dart';
|
||||||
|
|
||||||
Source get kisskhSource => _kisskhSource;
|
Source get kisskhSource => _kisskhSource;
|
||||||
const kisskhVersion = "0.0.25";
|
const kisskhVersion = "0.0.3";
|
||||||
const kisskhSourceCodeUrl =
|
const kisskhSourceCodeUrl =
|
||||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/src/en/kisskh/kisskh-v$kisskhVersion.dart";
|
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/src/en/kisskh/kisskh-v$kisskhVersion.dart";
|
||||||
Source _kisskhSource = Source(
|
Source _kisskhSource = Source(
|
||||||
|
|||||||
Reference in New Issue
Block a user