mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 02:41:39 +00:00
fix
This commit is contained in:
@@ -172,12 +172,13 @@ class MangaBox extends MProvider {
|
||||
if (dates != null && dates.isNotEmpty) {
|
||||
dateStr = dates.last.text;
|
||||
} else {
|
||||
dateStr = element.selectFirst("ul > li > p")?.text ??
|
||||
DateTime.now().toString();
|
||||
dateStr = element.selectFirst("p")?.text ?? "";
|
||||
}
|
||||
chapter.url = a.getHref;
|
||||
chapter.dateUpload =
|
||||
parseDates([dateStr], source.dateFormat, source.dateFormatLocale)[0];
|
||||
chapter.dateUpload = dateStr.isEmpty
|
||||
? DateTime.now().millisecondsSinceEpoch.toString()
|
||||
: parseDates(
|
||||
[dateStr], source.dateFormat, source.dateFormatLocale)[0];
|
||||
chaptersList.add(chapter);
|
||||
}
|
||||
manga.chapters = chaptersList;
|
||||
|
||||
@@ -4,7 +4,7 @@ import 'src/mangairo/mangaeiro.dart';
|
||||
import 'src/mangakakalot/mangakakalot.dart';
|
||||
import 'src/manganato/manganato.dart';
|
||||
|
||||
const mangaboxVersion = "0.0.55";
|
||||
const mangaboxVersion = "0.0.6";
|
||||
const mangaboxSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/manga/multisrc/mangabox/mangabox.dart";
|
||||
|
||||
|
||||
@@ -10,6 +10,6 @@ Source _mangairoSource = Source(
|
||||
typeSource: "mangabox",
|
||||
iconUrl:
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/manga/multisrc/mangabox/src/mangairo/icon.png",
|
||||
dateFormat: "MMM-dd-yy",
|
||||
dateFormat: "dd-MM-yyyy",
|
||||
dateFormatLocale: "en",
|
||||
);
|
||||
|
||||
@@ -9,6 +9,6 @@ Source _mangakakalotSource = Source(
|
||||
typeSource: "mangabox",
|
||||
iconUrl:
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/manga/multisrc/mangabox/src/mangakakalot/icon.png",
|
||||
dateFormat: "MMM-dd-yy",
|
||||
dateFormat: "MMM dd,yyyy",
|
||||
dateFormatLocale: "en",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user