OpenComic icon indicating copy to clipboard operation
OpenComic copied to clipboard

[Feature Request]: allow tracking for manga chapters with `{manga title} {chapter number} ...` filename

Open tw8sqf3s opened this issue 10 months ago • 5 comments

Preflight Checklist

  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe your suggested feature

examples:

  • Chainsaw Man 014 (2020) (foobar).cbz
  • Chainsaw Man 014.cbz

Additional Information

No response

Sample file

No response

tw8sqf3s avatar Feb 08 '25 14:02 tw8sqf3s

This should improve chapter detection ad05a2364882227688cccfa2fdf58a21f8e9615c, you can try it in this build if you want to test.

Build: https://mega.nz/file/HeZTSAqT#JRJOyyBJf49QKNlCpnD54iAd9FeEMhTtjzdqDyB7sQg

ollm avatar Feb 08 '25 16:02 ollm

it looks like it only detects 2 and 3 digit numbers but mangas like one piece have 4 digit chapter numbers One Piece 1020 (2020) (foobar).cbz One Piece 0001 (2020) (foobar).cbz

tw8sqf3s avatar Feb 09 '25 11:02 tw8sqf3s

I'm going to make some changes to fix it, I limited it to 2 and 3 digits to avoid detecting the year as a chapter number, in case the file name has something like this: Chainsaw Man 2020 (foobar).cbz

ollm avatar Feb 09 '25 11:02 ollm

i don't think that a big problem because chapters years are in parentheses most of the time on a certain site

tw8sqf3s avatar Feb 11 '25 07:02 tw8sqf3s

I've changed it to detect 1-4 digit numbers 34fac61d0a2c3ab013e2a47e7fd55d2b32f97383, the number must always be surrounded by spaces to be detected or at the end of the file name.

Build: https://mega.nz/file/eKQk3ZxL#JHmz2YrJ3DhJ6OFWwuX8KUjGm2JlGV6A0R6vjbQo2y8

ollm avatar Feb 11 '25 08:02 ollm

Closing this, since it's now included in v1.6.0

ollm avatar Jul 27 '25 18:07 ollm