komf icon indicating copy to clipboard operation
komf copied to clipboard

[ENHANCEMENT] Add covers only to first chapter (book) in a volume instead of to every chapter (Kavita)

Open GlassedSilver opened this issue 2 years ago • 7 comments

It would be nice if Komf could add the covers for volumes rather than the chapters, since that way the volumes get cover art without taking away the ability to see a preview of chapters in the given view.

GlassedSilver avatar Sep 19 '23 21:09 GlassedSilver

Any update on whether this could be implemented? I don't know if Kavita's API allows manipulating the cover art of volumes for example.

GlassedSilver avatar Mar 20 '24 07:03 GlassedSilver

Volumes are compiled from chapters, and Kavita only allows to upload chapter covers. If you look at how webui handles cover uploads for volumes you'll see that it uploads cover for the first chapter in it

Snd-R avatar Apr 03 '24 15:04 Snd-R

Volumes are compiled from chapters, and Kavita only allows to upload chapter covers. If you look at how webui handles cover uploads for volumes you'll see that it uploads cover for the first chapter in it

So that explains how it would need to be implemented if someone agrees this could be a useful feature.

That being said obviously the best thing would be for cover art to be stored and accessed separately from chapter files, but that's not up to Komf. (e.g. volume01.jpg or cover_v01.webp, etc...)

GlassedSilver avatar Apr 03 '24 20:04 GlassedSilver

Clarified my title since the way its technically done isn't the primary goal of this enhancement idea.

It just should be easier for chapter-based collectors and readers to see a page glimpse in chapter view rather than seeing the same cover of a given volume 10 times in a row. That gets old pretty fast and finding a specific chapter again based on vaguely remembering the start at least turns into an odyssey.

GlassedSilver avatar May 29 '24 15:05 GlassedSilver

I just stumbled upon this thread. I can build an endpoint for Volumes that will do the heavy lifting for Komf. I'll mark this for the v0.8.3 release.

majora2007 avatar Jul 04 '24 12:07 majora2007

You're a true gem to the manga community! ❤️

GlassedSilver avatar Jul 04 '24 17:07 GlassedSilver

I've added this and it will be available for mainstream consumption starting with v0.8.3. Feel free to test it with the nightly and let me know of any issues.

majora2007 avatar Jul 10 '24 12:07 majora2007

I don't think Komf can use that endpoint at the moment. It does its own name parsing to determine what is a volume by checking each chapter's object filename.

I'm not quite clear to what this issue here is asking for specifically. Is it the ability to upload volume cover in addition to chapter cover? From what I understand it currently not possible to do in Kavita

If it's just to upload cover for the first chapter then Komf will need to adjust its update logic to group multiple books that are considered a volume and only update cover and metadata for the first file e.g. if you have 2 files series - c001 (v01).cbz and series - c002 (v01).cbz it should upload covers for first file only

Currently Komf will treat both files as a volume and update the same metadata and cover for both of them

Snd-R avatar Aug 15 '24 12:08 Snd-R

Yes, the latter. If you store and read chapter by chapter to have a volume's cover on every chapter means your chapter previews are completely out of whack.

Naturally I believe Kavita should treat chapter previews and volume covers as different entities altogether, but if Komf could accommodate for this and therefore any other software universally therefore that'd be great.

GlassedSilver avatar Aug 16 '24 03:08 GlassedSilver

This is what the new API allows. If you have a volume Id you can set JUST the volume cover and leave the underlying chapter cover normal.

majora2007 avatar Aug 16 '24 10:08 majora2007

Isn't the new endpoint just sets the cover for the first chapter? From what I see it still updates both volume and chapter covers

https://github.com/user-attachments/assets/abe8722e-0071-47a1-a174-c8b7b85f8a42

Snd-R avatar Aug 17 '24 07:08 Snd-R

You're right, I just checked the code and saw I was still updating the chapter. I'll make sure it gets fixed up.

majora2007 avatar Aug 17 '24 19:08 majora2007