mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 02:41:39 +00:00
fix: Yomiroll search page
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import '../../../../model/source.dart';
|
||||
|
||||
const _yomirollVersion = "0.0.15";
|
||||
const _yomirollVersion = "0.0.2";
|
||||
const _yomirollSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/anime/src/all/yomiroll/yomiroll.dart";
|
||||
|
||||
|
||||
@@ -33,11 +33,12 @@ class YomiRoll extends MProvider {
|
||||
String url = "";
|
||||
final start = page != 1 ? "start=${(page - 1) * 36}&" : "";
|
||||
if (query.isNotEmpty) {
|
||||
final typeFilter = filters
|
||||
.where((e) => e.type == "TypeFilter" ? true : false)
|
||||
.toList()
|
||||
.first;
|
||||
final type = typeFilter.values[typeFilter.state].value;
|
||||
final typeFilter =
|
||||
filters.where((e) => e.type == "TypeFilter" ? true : false).toList();
|
||||
String type = "top_results";
|
||||
if (typeFilter.isNotEmpty) {
|
||||
type = typeFilter.first.values[typeFilter.first.state].value;
|
||||
}
|
||||
url =
|
||||
"$crApiUrl/discover/search?${start}n=36&q=${query.toLowerCase().replaceAll(" ", "+")}&type=$type";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user