fix: Yomiroll search page
This commit is contained in:
parent
6c3e26c2c8
commit
c7923011c8
3 changed files with 8 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
import '../../../../model/source.dart';
|
import '../../../../model/source.dart';
|
||||||
|
|
||||||
const _yomirollVersion = "0.0.15";
|
const _yomirollVersion = "0.0.2";
|
||||||
const _yomirollSourceCodeUrl =
|
const _yomirollSourceCodeUrl =
|
||||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/anime/src/all/yomiroll/yomiroll.dart";
|
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/anime/src/all/yomiroll/yomiroll.dart";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,11 +33,12 @@ class YomiRoll extends MProvider {
|
||||||
String url = "";
|
String url = "";
|
||||||
final start = page != 1 ? "start=${(page - 1) * 36}&" : "";
|
final start = page != 1 ? "start=${(page - 1) * 36}&" : "";
|
||||||
if (query.isNotEmpty) {
|
if (query.isNotEmpty) {
|
||||||
final typeFilter = filters
|
final typeFilter =
|
||||||
.where((e) => e.type == "TypeFilter" ? true : false)
|
filters.where((e) => e.type == "TypeFilter" ? true : false).toList();
|
||||||
.toList()
|
String type = "top_results";
|
||||||
.first;
|
if (typeFilter.isNotEmpty) {
|
||||||
final type = typeFilter.values[typeFilter.state].value;
|
type = typeFilter.first.values[typeFilter.first.state].value;
|
||||||
|
}
|
||||||
url =
|
url =
|
||||||
"$crApiUrl/discover/search?${start}n=36&q=${query.toLowerCase().replaceAll(" ", "+")}&type=$type";
|
"$crApiUrl/discover/search?${start}n=36&q=${query.toLowerCase().replaceAll(" ", "+")}&type=$type";
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue