mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
fix getImages
This commit is contained in:
@@ -364,8 +364,9 @@ class LocalManager with ChangeNotifier {
|
|||||||
var files = <File>[];
|
var files = <File>[];
|
||||||
await for (var entity in directory.list()) {
|
await for (var entity in directory.list()) {
|
||||||
if (entity is File) {
|
if (entity is File) {
|
||||||
if (entity.absolute.path.replaceFirst(path, '').substring(1) ==
|
// Do not exclude comic.cover, since it may be the first page of the chapter.
|
||||||
comic.cover) {
|
// A file with name starting with 'cover.' is not a comic page.
|
||||||
|
if (entity.name.startsWith('cover.')) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
//Hidden file in some file system
|
//Hidden file in some file system
|
||||||
|
Reference in New Issue
Block a user