Difegue / LANraragi

Web application for archival and reading of manga/doujinshi. Lightweight and Docker-ready for NAS/servers.
https://lrr.tvc-16.science
MIT License
2.16k stars 151 forks source link

ComicInfo plugin not correctly reading from ComicInfo.xml generated by RicterZ's nhentai downloader #948

Closed timimouryou closed 6 months ago

timimouryou commented 6 months ago

Currently the ComicInfo plugin only pulls the artist (and adds as group), language and adds doujinshi as the genre. The XML that comes from RicterZ's downloader also has a field for tags, characters, and title and the plugin isn't reading from it all all it seems.

Below is the format generated by the downloader.


<ComicInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Manga>Yes</Manga>
    <Title>[Sora no Colors (Oozora Wakaba)] Miku to Appli (THE IDOLM@STER CINDERELLA GIRLS) [Digital]</Title>
    <Summary>[空のCOLORS (大空若葉)] みくとアプリ (アイドルマスター シンデレラガールズ) [DL版]</Summary>
    <PageCount>26</PageCount>
    <URL>https://nhentai.net/g/161385</URL>
    <NhentaiId>161385</NhentaiId>
    <Genre>doujinshi</Genre>
    <BlackAndWhite>Yes</BlackAndWhite>
    <Year>2016</Year>
    <Month>4</Month>
    <Day>15</Day>
    <Series>the idolmaster</Series>
    <Characters>producer, miku maekawa</Characters>
    <Tags>sole female, blowjob, masturbation, catgirl</Tags>
    <Writer>oozorawakaba</Writer>
    <Translated>No</Translated>
    <LanguageISO>ja</LanguageISO>
</ComicInfo>```
timimouryou commented 6 months ago

After some googling and staring at the other plugins, I modified it on my own to read it correctly.

Difegue commented 6 months ago

Good job! Please consider making a PR for it if possible 🙏