mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
add novel support
This commit is contained in:
@@ -159,6 +159,11 @@ class MangaDex extends MProvider {
|
||||
headers: headers))
|
||||
.body;
|
||||
MManga manga = MManga();
|
||||
final coverUrl = jsonPathToString(
|
||||
res, r'$..data.relationships[*].attributes.fileName', '');
|
||||
if (coverUrl != null) {
|
||||
manga.imageUrl = "https://uploads.mangadex.org/covers/${url.replaceAll("/manga/", "")}/${coverUrl}";
|
||||
}
|
||||
manga.author = jsonPathToString(
|
||||
res, r'$..data.relationships[*].attributes.name', ', ');
|
||||
|
||||
@@ -382,8 +387,6 @@ class MangaDex extends MProvider {
|
||||
GroupFilter("ContentRatingList", "Content rating", [
|
||||
CheckBoxFilter("Safe", "contentRating[]=safe", state: true),
|
||||
CheckBoxFilter("Suggestive", "contentRating[]=suggestive", state: true),
|
||||
CheckBoxFilter("Erotica", "contentRating[]=erotica"),
|
||||
CheckBoxFilter("Pornographic", "contentRating[]=pornographic"),
|
||||
]),
|
||||
GroupFilter("DemographicList", "Publication demographic", [
|
||||
CheckBoxFilter("None", "publicationDemographic[]=none"),
|
||||
|
||||
@@ -3,7 +3,7 @@ import '../../../../../model/source.dart';
|
||||
const _apiUrl = 'https://api.mangadex.org';
|
||||
const _baseUrl = 'https://mangadex.org';
|
||||
const _isNsfw = true;
|
||||
const _mangadexVersion = "0.0.9";
|
||||
const _mangadexVersion = "0.1.1";
|
||||
const _mangadexSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/manga/src/all/mangadex/mangadex.dart";
|
||||
String _iconUrl =
|
||||
|
||||
Reference in New Issue
Block a user