mihon icon indicating copy to clipboard operation
mihon copied to clipboard

Improve Komga search and metadata handling

Open Auram opened this issue 9 months ago • 6 comments

Describe your suggested feature

I've noticed that when you click on a credit in a comic's metadata it doesn't format the search correctly for Komga.

For example if you were to click on the writer credit for "Jonathan Hickman" it would search for that plainly and likely return no results. But if you search for author:(Jonathan Hickman) then it would work.

This is detailed here: https://komga.org/docs/guides/search/

I also think it could be helpful to have Mihon parse Komga's metadata like it does. Very simply, creator credits are usually a list of people separated by a comma. Komga takes this and turns each into a clickable link that filters your library by that creator. Would be extremely helpful for finding things to read in a big library.

There also seems to be no way to view a specific issue's metadata in Mihon. Being able to do that would be really great.

Other details

No response

Acknowledgements

  • [x] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
  • [x] I have written a short but informative title.
  • [x] I have updated the app to version 0.17.1.
  • [x] I will fill out all of the requested information in this form.

Auram avatar Mar 18 '25 08:03 Auram

Mihon is not really a Komga specific client so I'm not sure how we would achieve this in general

AntsyLich avatar Mar 22 '25 15:03 AntsyLich

Komga supplies all this metadata, so it should just be a few small tweaks if a chapter is from a Komga source. The only thing I could see being a bigger task is the per-chapter view since that's a new view.

Auram avatar Mar 23 '25 01:03 Auram

Sounds like something you should request from the Komga extension maintainers. I could see using the Genres (tags) as a workaround for that instead of the Author/Artist fields themselves

https://github.com/user-attachments/assets/31324229-d0ef-4dba-88db-842ec24d1ffd

BrutuZ avatar Mar 23 '25 02:03 BrutuZ

I could see that working, but I just tried manually typing Author:() and it didn't return anything. Only lowercase author: works. Not sure why it's so strict. Who maintains the Komga extension?

Auram avatar Mar 23 '25 09:03 Auram

I could see that working, but I just tried manually typing Author:() and it didn't return anything. Only lowercase author: works. Not sure why it's so strict. Who maintains the Komga extension?

Pretty sure the code would be doing an equality check for "author" without lowercasing or casefolding.

MajorTanya avatar Mar 23 '25 11:03 MajorTanya

Do you mean Komga or Mihon's code? I tried searching with Author:() and author:() in both and only author:() worked.

Auram avatar Mar 23 '25 11:03 Auram