mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 02:41:39 +00:00
AnimesUltra: fix search
This commit is contained in:
@@ -59,7 +59,10 @@ class AnimesUltra extends MProvider {
|
||||
|
||||
@override
|
||||
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 = [];
|
||||
final urls = xpath(res, '//*[@class="film-poster"]/a/@href');
|
||||
@@ -74,7 +77,7 @@ class AnimesUltra extends MProvider {
|
||||
animeList.add(anime);
|
||||
}
|
||||
|
||||
return MPages(animeList, false);
|
||||
return MPages(animeList.reversed.toList(), false);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import '../../../../../model/source.dart';
|
||||
|
||||
Source get animesultraSource => _animesultraSource;
|
||||
const _animesultraVersion = "0.0.7";
|
||||
const _animesultraVersion = "0.0.75";
|
||||
const _animesultraSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/fr/animesultra/animesultra.dart";
|
||||
Source _animesultraSource = Source(
|
||||
|
||||
Reference in New Issue
Block a user