add novel support

This commit is contained in:
Schnitzel5
2024-11-25 22:55:23 +01:00
parent d9a66b7651
commit 981833cac8
28 changed files with 5836 additions and 164 deletions

View File

@@ -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"),

View File

@@ -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 =