Skip to content

Commit 7b52b28

Browse files
committed
Fix: Do not use the ignore pattern when searching for poster/images
1 parent 35e44c6 commit 7b52b28

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2020
- Show progress bar, pages and percentage in library/browsing [`d0002d9`](https://github.com/ollm/OpenComic/commit/d0002d9da5b27543fe4702b273240093975ad8f4)
2121
- Progressive thumbnail/progress generation based on scroll position [`1d22f22`](https://github.com/ollm/OpenComic/commit/1d22f2290e81785f3c785af9d2eef132cea2935f)
2222
- Option to mark as read and unread [`82ae5ef`](https://github.com/ollm/OpenComic/commit/82ae5ef7e24afc47a6e817b6df5ef6d81099eeb5)
23-
- Option to show page number in the top right-hand corner
23+
- Option to show page number in the top right-hand corner [`35e44c6`](https://github.com/ollm/OpenComic/commit/35e44c6e271e545a09de4f66ecd0bd289e217447)
2424

2525
##### 🐛 Bug Fixes
2626

@@ -33,6 +33,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3333
- Navigation back not working with shortcuts and gamepad [`ba8641f`](https://github.com/ollm/OpenComic/commit/ba8641f96ed3c8bdef8e35ce98af55b7e6d10bc8)
3434
- Correct invert some shortcuts in manga reading [`208fee6`](https://github.com/ollm/OpenComic/commit/208fee6d48c1dab69b131e45f997326323ac8625)
3535
- Optimized poster handling in file image retrieval [`53b5c42`](https://github.com/ollm/OpenComic/commit/53b5c42ee98ade28ad72c492bd9f6e67b119cd50)
36+
- Do not use the ignore pattern when searching for poster/images
3637

3738
## [v1.5.0](https://github.com/ollm/OpenComic/releases/tag/v1.5.0) (19-06-2025)
3839

‎scripts/file-manager.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,15 +553,15 @@ var file = function(path, _config = false) {
553553
if(!this.alreadyRead)
554554
await this.read({cacheServer: true});
555555

556-
_files = _files || filtered(this.files, true);
556+
_files = _files || filtered(this.files, true, false);
557557
_path = _path || this.path;
558558

559559
_isCompressed = _isCompressed || isCompressed(_path);
560560

561561
if(config.ignoreSingleFoldersLibrary && _files.length == 1 && (_files[0].folder || _files[0].compressed))
562562
{
563563
const file = _files[0];
564-
_files = file.files ? filtered(file.files, true) : await this.read({cacheServer: true}, file.path);
564+
_files = file.files ? filtered(file.files, true, false) : await this.read({cacheServer: true}, file.path);
565565

566566
return this.images(only, from, poster, _files, file.path, _isCompressed);
567567
}
@@ -3280,9 +3280,9 @@ function ignoreFilesRegex(ignoreFilesRegex = false, force = false)
32803280
return _ignoreFilesRegex;
32813281
}
32823282

3283-
function filtered(files, specialFiles = false)
3283+
function filtered(files, specialFiles = false, ignoreFiles = true)
32843284
{
3285-
const ignore = ignoreFilesRegex();
3285+
const ignore = ignoreFiles ? ignoreFilesRegex() : false;
32863286
const filtered = [];
32873287

32883288
if(files)

0 commit comments

Comments
 (0)