Skip to content

Commit cca841e

Browse files
committed
Fix: Use reading sort for thumbnail/poster generation
1 parent 3806516 commit cca841e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2727
- Save/Copy uses the image under the mouse cursor instead of the active page [`26c5923`](https://github.com/ollm/OpenComic/commit/26c5923d5dc920b691be5db591c20b8b92d9f320)
2828
- Error saving the progress of the final page in epub files [`ff42c18`](https://github.com/ollm/OpenComic/commit/ff42c181e7a6a324ef1065c836dc0ed175e1b623)
2929
- Prevent crash when retrieving metadata with Sharp for many large images (Linux only) [`d5616d8`](https://github.com/ollm/OpenComic/commit/d5616d86bd38841e02bf70d4a2e2502063c45328)
30-
- Extract files when the file in it starts with the '-' character
30+
- Extract files when the file in it starts with the '-' character [`3806516`](https://github.com/ollm/OpenComic/commit/38065169d0a7583a7543154fad44351af221a23c)
31+
- Use reading sort for thumbnail/poster generation
3132

3233
## [v1.6.5](https://github.com/ollm/OpenComic/releases/tag/v1.6.5) (31-10-2025)
3334

scripts/file-manager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ var file = function(path, _config = false) {
556556
// Get the first images of a folder/compressed
557557
this.images = async function(only = 1, from = false, findPoster = false, _files = false, _path = false, _isCompressed = false) {
558558

559-
this.updateConfig({filtered: false});
559+
this.updateConfig({filtered: false, sort: {extraKey: 'Reading'}});
560560

561561
// Find poster in the same folder where the folder/file is located
562562
if(findPoster)
@@ -675,7 +675,7 @@ var file = function(path, _config = false) {
675675
try
676676
{
677677
const file = fileManager.file(dirname);
678-
file.updateConfig({fastRead: true, filtered: false, sha: false, cacheServer: true});
678+
file.updateConfig({fastRead: true, filtered: false, sha: false, cacheServer: true, sort: {extraKey: 'Reading'}});
679679
const files = await file.read();
680680
file.destroy();
681681

0 commit comments

Comments
 (0)