Open MrHakisak opened 1 week ago
Gude MrHakisak, I agree that having the ID in the <Title>
field is not ideal. Better would be to use a proper field for the ID only like the <Number>
field for example. But nHentai Archivist's created library is currently optimised to be hosted by Komga (simply because that's what I use and I don't know a better option) and I couldn't figure out how to search by <Number>
using Komga.
I'm not a big fan of introducing another setting for edge cases, adding more complexity and potentially library inconsistencies. So if I'm going to make a change to the ComicInfo.xml, I'd like to do it only once to keep breaking changes to a minimum and fix the situation altogether.
So if you have a suggestion on where to put the nhentai ID instead and still be able to search by it using Komga, I'm very open to that change.
I currently have Komga categorise every work as a oneshot, so each work's individual tags are used and no tags grouped in series. As I've said, putting nHentai ID in <Number>
does not allow for searching. Another possibility, that has been proposed before, would be to add the ID as a tag, but that would literally create hundreds of thousands of individual tags with 1 entry making the filter by tag sidebar completely unusable. And it wouldn't allow for easily searching by tag either.
I am new to Komga and cbz files, but I spent a few hours.
I have tried to run a few tests by modifying the ComicInfo.xml, I have tried replacing the number from the title and put it into different fields: Number, Count, Volume, AlternateNumber, AlternateCount, Summary (which shows on komga but can't be searched), Notes, GTIN. I couldn't manage to search using any of those fields.
Some things that do work: Putting the ID at the end of the title. Adding the ID as an additional Writer. or any of these fields: Penciller, Letterer, Inker, Editor, Cover, Colorist
This is what a oneshot would look like if some of those fields are filled in:
You would search for them here like this: (also note that if you open the dropdown, nothing appears until you start typing, so hopefully if there are +100,000 entries it shouldn't cause issues)
Do with this information how you wish (but let me know if you decide against doing any of these changes so I can just start scraping). Also unless there is a software out there that can batch rename every book (let me know if there is), it would mean you would have to re-scrape everything again.
Okay I didn't know <Writer>
had its own search field. This is pretty cool.
I am currently inclined to add the ID in <Writer>
and add a setting to enable having ID additionally in the title just like now, but defaulted to off.
Transitioning from the old ComicInfo.xml format to the new will be a pain in the ass though. The best way would probably be to write a helper program to automatically update existing ComicInfo.xml, but that sounds like more time I am currently motivated to spend. Anyone able to jump to the rescue with a quick and dirty python script?
Please don't add the ID into Writer. I have Writer mapped to artist in LANraragi right now and I already modified the file to account for it. As it stands I already have a mini patch that changes how nhentai_archivist writes out the Web field because the nHentai metadata plugin over on LANraragi doesn't expect it to have a protocol set at the start.
As it stands the ComicInfo plugin over there isn't able to get the tags from your ComicInfo file. It's probably a bug. One that I have not gone through the trouble to fix so I just pull from nHentai in batches.
With all that said I know you are targeting Komga so if you do make a change then I'll adjust depending on the change (if any).
Hmm you're making a good point though. <Writer>
is already being used by artists and mixing the field with ID is probably not a good idea.
Komga also offers the fields "pencillers", "inkers", "letterers", "cover", "editors", and "translators". Except for "translators", I'm currently using none of the other fields which could then be used to save the ID. This feels pretty random and unexpected though... I wish they would just allow searching by <Number>
.
I opened a feature request on komga git. They seem kinda active so let's see what they do
Love the work you are doing here 9-FS.
I am seeing that the nhentai ID number is put in the title of the ComicInfo.xml
-Thank you