mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
Fix
This commit is contained in:
@@ -2,7 +2,7 @@ import 'dart:convert';
|
|||||||
import 'package:bridge_lib/bridge_lib.dart';
|
import 'package:bridge_lib/bridge_lib.dart';
|
||||||
|
|
||||||
getPopularAnime(MangaModel anime) async {
|
getPopularAnime(MangaModel anime) async {
|
||||||
final data = {"url": anime.baseUrl};
|
final data = {"url": "https://www.okanime.xyz"};
|
||||||
final res = await MBridge.http('GET', json.encode(data));
|
final res = await MBridge.http('GET', json.encode(data));
|
||||||
if (res.isEmpty) {
|
if (res.isEmpty) {
|
||||||
return anime;
|
return anime;
|
||||||
@@ -53,7 +53,9 @@ getAnimeDetail(MangaModel anime) async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getLatestUpdatesAnime(MangaModel anime) async {
|
getLatestUpdatesAnime(MangaModel anime) async {
|
||||||
final data = {"url": "${anime.baseUrl}/espisode-list?page=${anime.page}"};
|
final data = {
|
||||||
|
"url": "https://www.okanime.xyz/espisode-list?page=${anime.page}"
|
||||||
|
};
|
||||||
final res = await MBridge.http('GET', json.encode(data));
|
final res = await MBridge.http('GET', json.encode(data));
|
||||||
if (res.isEmpty) {
|
if (res.isEmpty) {
|
||||||
return anime;
|
return anime;
|
||||||
@@ -77,7 +79,7 @@ getLatestUpdatesAnime(MangaModel anime) async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
searchAnime(MangaModel anime) async {
|
searchAnime(MangaModel anime) async {
|
||||||
String url = "${anime.baseUrl}/search/?s=${anime.query}";
|
String url = "https://www.okanime.xyz/search/?s=${anime.query}";
|
||||||
if (anime.page > 1) {
|
if (anime.page > 1) {
|
||||||
url += "&page=${anime.page}";
|
url += "&page=${anime.page}";
|
||||||
}
|
}
|
||||||
@@ -106,7 +108,6 @@ searchAnime(MangaModel anime) async {
|
|||||||
|
|
||||||
getVideoList(MangaModel anime) async {
|
getVideoList(MangaModel anime) async {
|
||||||
final datas = {"url": anime.link};
|
final datas = {"url": anime.link};
|
||||||
print(anime.link);
|
|
||||||
final res = await MBridge.http('GET', json.encode(datas));
|
final res = await MBridge.http('GET', json.encode(datas));
|
||||||
|
|
||||||
if (res.isEmpty) {
|
if (res.isEmpty) {
|
||||||
@@ -2,7 +2,7 @@ import '../../../model/source.dart';
|
|||||||
import '../../../utils/utils.dart';
|
import '../../../utils/utils.dart';
|
||||||
|
|
||||||
Source get okanimeSource => _okanimeSource;
|
Source get okanimeSource => _okanimeSource;
|
||||||
const okanimeVersion = "0.0.1";
|
const okanimeVersion = "0.0.11";
|
||||||
const okanimeSourceCodeUrl =
|
const okanimeSourceCodeUrl =
|
||||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/src/ar/okanime/okanime-v$okanimeVersion.dart";
|
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/src/ar/okanime/okanime-v$okanimeVersion.dart";
|
||||||
Source _okanimeSource = Source(
|
Source _okanimeSource = Source(
|
||||||
|
|||||||
Reference in New Issue
Block a user