mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-20 23:22:07 +00:00
fix
This commit is contained in:
parent
d4f99946a3
commit
616fb0699d
1 changed files with 3 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ class GetChapterUrlModel {
|
|||
Directory? path;
|
||||
List<String> pageUrls = [];
|
||||
List<bool> isLocaleList = [];
|
||||
List<Uint8List> archiveImages = [];
|
||||
List<Uint8List?> archiveImages = [];
|
||||
List<UChapDataPreload> uChapDataPreload;
|
||||
GetChapterUrlModel(
|
||||
{required this.path,
|
||||
|
|
@ -59,7 +59,7 @@ Future<GetChapterUrlModel> getChapterUrl(
|
|||
path = await storageProvider.getMangaChapterDirectory(chapter);
|
||||
final mangaDirectory = await storageProvider.getMangaMainDirectory(chapter);
|
||||
|
||||
List<Uint8List> archiveImages = [];
|
||||
List<Uint8List?> archiveImages = [];
|
||||
final isLocalArchive = (chapter.archivePath ?? '').isNotEmpty;
|
||||
if (!chapter.manga.value!.isLocalArchive!) {
|
||||
if (isarPageUrls.isNotEmpty &&
|
||||
|
|
@ -156,6 +156,7 @@ Future<GetChapterUrlModel> getChapterUrl(
|
|||
}
|
||||
} else {
|
||||
for (var i = 0; i < pageUrls.length; i++) {
|
||||
archiveImages.add(null);
|
||||
if (await File("${path!.path}" "${padIndex(i + 1)}.jpg").exists()) {
|
||||
isLocaleList.add(true);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue