Add New sources: BeastScan (AR), Lelmanga (FR) & remove unused code

This commit is contained in:
kodjomoustapha
2023-11-01 17:13:24 +01:00
parent 615d63179b
commit 8ae72d12e7
21 changed files with 210 additions and 321 deletions

View File

@@ -70,22 +70,7 @@ class NepNep extends MProvider {
final vmChapters =
substringBefore(substringAfter(script, "vm.Chapters = "), ";");
final chapters = json.decode(vmChapters) as List;
var chapUrls = chapters
.map((ch) =>
'/read-online/${substringAfter(url, "/manga/")}${chapterURLEncode(ch['Chapter'])}')
.toList();
var chaptersNames = chapters.map((ch) {
String name = ch['ChapterName'] ?? "";
String indexChapter = ch['Chapter'];
if (name.isEmpty) {
name = '${ch['Type']} ${chapterImage(indexChapter, true)}';
}
return name;
}).toList();
var chaptersDates = chapters.map((ch) => ch['Date']).toList();
var dateUploads =
parseDates(chaptersDates, source.dateFormat, source.dateFormatLocale);
List<MChapter> chaptersList = [];
for (var ch in chapters) {
@@ -219,11 +204,6 @@ class NepNep extends MProvider {
return '-chapter-$n$suffix$index.html';
}
@override
Future<List<MVideo>> getVideoList(MSource source, String url) async {
return [];
}
}
Map<String, String> getHeader(String url) {

View File

@@ -15,6 +15,7 @@ List<Source> _nepnepSourcesList = [
lang: "en",
typeSource: "nepnep",
iconUrl: getIconUrl("mangasee", "en"),
isFullData: true,
dateFormat: defaultDateFormat,
dateFormatLocale: defaultDateFormatLocale,
version: nepnepVersion,
@@ -26,6 +27,7 @@ List<Source> _nepnepSourcesList = [
lang: "en",
typeSource: "nepnep",
iconUrl: getIconUrl("mangalife", "en"),
isFullData: true,
dateFormat: defaultDateFormat,
dateFormatLocale: defaultDateFormatLocale,
version: nepnepVersion,