mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 02:41:39 +00:00
fix
This commit is contained in:
@@ -34,7 +34,7 @@ class MangaReader extends MProvider {
|
|||||||
Future<MPages> search(String query, int page, FilterList filterList) async {
|
Future<MPages> search(String query, int page, FilterList filterList) async {
|
||||||
final filters = filterList.filters;
|
final filters = filterList.filters;
|
||||||
|
|
||||||
String url = "$baseUrl/?&title=$query&page=$page";
|
String url = "$baseUrl${getMangaSearchUrl(page, query)}";
|
||||||
|
|
||||||
for (var filter in filters) {
|
for (var filter in filters) {
|
||||||
if (filter.type == "AuthorFilter") {
|
if (filter.type == "AuthorFilter") {
|
||||||
@@ -277,37 +277,39 @@ class MangaReader extends MProvider {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
List<dynamic> getFilterList() {
|
List<dynamic> getFilterList() {
|
||||||
return [
|
return ignoreFilter()
|
||||||
SeparatorFilter(),
|
? []
|
||||||
TextFilter("AuthorFilter", "Author"),
|
: [
|
||||||
TextFilter("YearFilter", "Year"),
|
SeparatorFilter(),
|
||||||
SelectFilter("StatusFilter", "Status", 0, [
|
TextFilter("AuthorFilter", "Author"),
|
||||||
SelectFilterOption("All", ""),
|
TextFilter("YearFilter", "Year"),
|
||||||
SelectFilterOption("Ongoing", "ongoing"),
|
SelectFilter("StatusFilter", "Status", 0, [
|
||||||
SelectFilterOption("Completed", "completed"),
|
SelectFilterOption("All", ""),
|
||||||
SelectFilterOption("Hiatus", "hiatus"),
|
SelectFilterOption("Ongoing", "ongoing"),
|
||||||
SelectFilterOption("Dropped", "dropped"),
|
SelectFilterOption("Completed", "completed"),
|
||||||
]),
|
SelectFilterOption("Hiatus", "hiatus"),
|
||||||
SelectFilter("TypeFilter", "Type", 0, [
|
SelectFilterOption("Dropped", "dropped"),
|
||||||
SelectFilterOption("All", ""),
|
]),
|
||||||
SelectFilterOption("Manga", "Manga"),
|
SelectFilter("TypeFilter", "Type", 0, [
|
||||||
SelectFilterOption("Manhwa", "Manhwa"),
|
SelectFilterOption("All", ""),
|
||||||
SelectFilterOption("Manhua", "Manhua"),
|
SelectFilterOption("Manga", "Manga"),
|
||||||
SelectFilterOption("Comic", "Comic"),
|
SelectFilterOption("Manhwa", "Manhwa"),
|
||||||
]),
|
SelectFilterOption("Manhua", "Manhua"),
|
||||||
SelectFilter("OrderByFilter", "Sort By", 0, [
|
SelectFilterOption("Comic", "Comic"),
|
||||||
SelectFilterOption("Default", ""),
|
]),
|
||||||
SelectFilterOption("A-Z", "title"),
|
SelectFilter("OrderByFilter", "Sort By", 0, [
|
||||||
SelectFilterOption("Z-A", "titlereverse"),
|
SelectFilterOption("Default", ""),
|
||||||
SelectFilterOption("Latest Update", "update"),
|
SelectFilterOption("A-Z", "title"),
|
||||||
SelectFilterOption("Latest Added", "latest"),
|
SelectFilterOption("Z-A", "titlereverse"),
|
||||||
SelectFilterOption("Popular", "popular"),
|
SelectFilterOption("Latest Update", "update"),
|
||||||
]),
|
SelectFilterOption("Latest Added", "latest"),
|
||||||
HeaderFilter("Genre exclusion is not available for all sources"),
|
SelectFilterOption("Popular", "popular"),
|
||||||
GroupFilter("GenreListFilter", "Genre", [
|
]),
|
||||||
TriStateFilter("Press reset to attempt to fetch genres", ""),
|
HeaderFilter("Genre exclusion is not available for all sources"),
|
||||||
]),
|
GroupFilter("GenreListFilter", "Genre", [
|
||||||
];
|
TriStateFilter("Press reset to attempt to fetch genres", ""),
|
||||||
|
]),
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -337,6 +339,17 @@ class MangaReader extends MProvider {
|
|||||||
}
|
}
|
||||||
return "/manga";
|
return "/manga";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String getMangaSearchUrl(int page, String query) {
|
||||||
|
if (["Sushi-Scan"].contains(source.name)) {
|
||||||
|
return "/page/$page/?s=$query";
|
||||||
|
}
|
||||||
|
return "/?s=$query&page=$page";
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ignoreFilter() {
|
||||||
|
return ["Sushi-Scan"].contains(source.name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MangaReader main(MSource source) {
|
MangaReader main(MSource source) {
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ import 'src/raikiscan/raikiscan.dart';
|
|||||||
import 'src/ravenscans/ravenscans.dart';
|
import 'src/ravenscans/ravenscans.dart';
|
||||||
import 'src/shadowmangas/shadowmangas.dart';
|
import 'src/shadowmangas/shadowmangas.dart';
|
||||||
import 'src/suryascans/suryascans.dart';
|
import 'src/suryascans/suryascans.dart';
|
||||||
import 'src/sushiscans/sushiscans.dart';
|
|
||||||
import 'src/sushiscan/sushiscan.dart';
|
import 'src/sushiscan/sushiscan.dart';
|
||||||
import 'src/tarotscans/tarotscans.dart';
|
import 'src/tarotscans/tarotscans.dart';
|
||||||
import 'src/tukangkomik/tukangkomik.dart';
|
import 'src/tukangkomik/tukangkomik.dart';
|
||||||
@@ -93,7 +92,7 @@ import 'src/shijiescans/shijiescans.dart';
|
|||||||
import 'src/summertoon/summertoon.dart';
|
import 'src/summertoon/summertoon.dart';
|
||||||
import 'src/zenithscans/zenithscans.dart';
|
import 'src/zenithscans/zenithscans.dart';
|
||||||
|
|
||||||
const mangareaderVersion = "0.1.5";
|
const mangareaderVersion = "0.1.6";
|
||||||
const mangareaderSourceCodeUrl =
|
const mangareaderSourceCodeUrl =
|
||||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/manga/multisrc/mangareader/mangareader.dart";
|
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/manga/multisrc/mangareader/mangareader.dart";
|
||||||
|
|
||||||
@@ -151,8 +150,6 @@ List<Source> _mangareaderSourcesList = [
|
|||||||
shadowmangasSource,
|
shadowmangasSource,
|
||||||
//Surya Scans (EN)
|
//Surya Scans (EN)
|
||||||
suryascansSource,
|
suryascansSource,
|
||||||
//Sushi-Scans (FR)
|
|
||||||
sushiscansSource,
|
|
||||||
//Sushi-Scan (FR)
|
//Sushi-Scan (FR)
|
||||||
sushiscanSource,
|
sushiscanSource,
|
||||||
//Tarot Scans (TR)
|
//Tarot Scans (TR)
|
||||||
|
|||||||
Reference in New Issue
Block a user