mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-15 03:10:59 +00:00
added filter method
This commit is contained in:
@@ -46,7 +46,8 @@ class NimeGami extends MProvider {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<MPages> search(MSource source, String query, int page) async {
|
||||
Future<MPages> search(
|
||||
MSource source, String query, int page, FilterList filterList) async {
|
||||
final data = {
|
||||
"url": "${source.baseUrl}/page/$page/?s=$query&post_type=post"
|
||||
};
|
||||
@@ -2,7 +2,7 @@ import '../../../../model/source.dart';
|
||||
import '../../../../utils/utils.dart';
|
||||
|
||||
Source get nimegami => _nimegami;
|
||||
const nimegamiVersion = "0.0.2";
|
||||
const nimegamiVersion = "0.0.25";
|
||||
const nimegamiCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/src/id/nimegami/nimegami-v$nimegamiVersion.dart";
|
||||
Source _nimegami = Source(
|
||||
|
||||
@@ -23,7 +23,8 @@ class OploVerz extends MProvider {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<MPages> search(MSource source, String query, int page) async {
|
||||
Future<MPages> search(
|
||||
MSource source, String query, int page, FilterList filterList) async {
|
||||
final data = {
|
||||
"url": "${source.baseUrl}/anime-list/page/$page/?title=$query"
|
||||
};
|
||||
@@ -95,15 +96,14 @@ class OploVerz extends MProvider {
|
||||
}));
|
||||
final playerLink =
|
||||
xpath(ress, '//iframe[@class="playeriframe"]/@src').first;
|
||||
print(playerLink);
|
||||
final resPlayer = await http('GET', json.encode({"url": playerLink}));
|
||||
var resJson = substringBefore(substringAfter(resPlayer, "= "), "<");
|
||||
var streams = json.decode(resJson)["streams"] as List;
|
||||
var streams =
|
||||
json.decode(getMapValue(resJson, "streams", encode: true)) as List;
|
||||
List<MVideo> videos = [];
|
||||
for (var stream in streams) {
|
||||
print(stream["play_url"]);
|
||||
final videoUrl = stream["play_url"];
|
||||
final quality = getQuality(stream["format_id"]);
|
||||
final videoUrl = getMapValue(stream, "play_url");
|
||||
final quality = getQuality(getMapValue(stream, "format_id"));
|
||||
|
||||
MVideo video = MVideo();
|
||||
video
|
||||
@@ -2,7 +2,7 @@ import '../../../../model/source.dart';
|
||||
import '../../../../utils/utils.dart';
|
||||
|
||||
Source get oploverz => _oploverz;
|
||||
const oploverzVersion = "0.0.1";
|
||||
const oploverzVersion = "0.0.15";
|
||||
const oploverzCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/src/id/oploverz/oploverz-v$oploverzVersion.dart";
|
||||
Source _oploverz = Source(
|
||||
|
||||
@@ -19,7 +19,8 @@ class OtakuDesu extends MProvider {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<MPages> search(MSource source, String query, int page) async {
|
||||
Future<MPages> search(
|
||||
MSource source, String query, int page, FilterList filterList) async {
|
||||
final data = {"url": "${source.baseUrl}/?s=$query&post_type=anime"};
|
||||
final res = await http('GET', json.encode(data));
|
||||
List<MManga> animeList = [];
|
||||
@@ -2,7 +2,7 @@ import '../../../../model/source.dart';
|
||||
import '../../../../utils/utils.dart';
|
||||
|
||||
Source get otakudesu => _otakudesu;
|
||||
const otakudesuVersion = "0.0.2";
|
||||
const otakudesuVersion = "0.0.25";
|
||||
const otakudesuCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/src/id/otakudesu/otakudesu-v$otakudesuVersion.dart";
|
||||
Source _otakudesu = Source(
|
||||
|
||||
Reference in New Issue
Block a user