Snd-R / komf

Komga and Kavita metadata fetcher
MIT License
322 stars 20 forks source link

Book metadata for non-volume release If book metadata isn't found #19

Closed LazyGeniusMan closed 1 year ago

LazyGeniusMan commented 2 years ago

Currently, if komf can't get any book metadata and only got series metadata (e.g. mangaupdates) it will look for first volume (by filename) and write series metadata to it. With current behaviour, non-volume releases (e.g. manhwa) won't have desc in the first chapter if book metadata isn't found.

One of the way to solve this is by adding a fallback, if volume is not found in the filename, then use first file alphabetically in the series.

(reported on discord, just move this to github)

LazyGeniusMan commented 1 year ago

Just notice that Some Series - Volume 01 and Some Series - Vol 01 also didn't picked up. Looks like it's only matching v01 pattern. Another reason to implement this (first file alphabetically) as a fallback instead of restrict it to only first volume and parsing it by filename.