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

@@ -1,7 +1,6 @@
import '../../../../model/source.dart';
import 'src/beastscans/beastscans.dart';
import 'src/lelmanga/lelmanga.dart';
import 'src/asurascans/asurascans.dart';
import 'src/komiklab/komiklab.dart';
import 'src/azurescans/azurescans.dart';
import 'src/cosmicscans/cosmicscans.dart';
@@ -104,8 +103,6 @@ List<Source> _mangareaderSourcesList = [
beastscansSource,
//Lelmanga (FR)
lelmangaSource,
//Asura Scans (EN)
asurascansSource,
//KomikLab Scans (EN)
komiklabSource,
//Azure Scans (EN)

View File

@@ -1,14 +0,0 @@
import '../../../../../../model/source.dart';
Source get asurascansSource => _asurascansSource;
Source _asurascansSource = Source(
name: "Asura Scans",
baseUrl: "https://asuratoon.com/",
lang: "en",
typeSource: "mangareader",
iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/manga/multisrc/mangareader/src/asurascans/icon.png",
dateFormat: "MMM d, yyyy",
dateFormatLocale: "en_us",
);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

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 =