mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
AnimesUltra: fix search
This commit is contained in:
@@ -59,7 +59,10 @@ class AnimesUltra extends MProvider {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Future<MPages> search(String query, int page, FilterList filterList) async {
|
Future<MPages> search(String query, int page, FilterList filterList) async {
|
||||||
final res = (await client.get(Uri.parse(baseUrl))).body;
|
query = query.trim().replaceAll(" ", "+");
|
||||||
|
final res = (await client.get(Uri.parse(
|
||||||
|
"$baseUrl/index.php?do=search&subaction=search&story=$query")))
|
||||||
|
.body;
|
||||||
|
|
||||||
List<MManga> animeList = [];
|
List<MManga> animeList = [];
|
||||||
final urls = xpath(res, '//*[@class="film-poster"]/a/@href');
|
final urls = xpath(res, '//*[@class="film-poster"]/a/@href');
|
||||||
@@ -74,7 +77,7 @@ class AnimesUltra extends MProvider {
|
|||||||
animeList.add(anime);
|
animeList.add(anime);
|
||||||
}
|
}
|
||||||
|
|
||||||
return MPages(animeList, false);
|
return MPages(animeList.reversed.toList(), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import '../../../../../model/source.dart';
|
import '../../../../../model/source.dart';
|
||||||
|
|
||||||
Source get animesultraSource => _animesultraSource;
|
Source get animesultraSource => _animesultraSource;
|
||||||
const _animesultraVersion = "0.0.7";
|
const _animesultraVersion = "0.0.75";
|
||||||
const _animesultraSourceCodeUrl =
|
const _animesultraSourceCodeUrl =
|
||||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/fr/animesultra/animesultra.dart";
|
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/fr/animesultra/animesultra.dart";
|
||||||
Source _animesultraSource = Source(
|
Source _animesultraSource = Source(
|
||||||
|
|||||||
Reference in New Issue
Block a user