ccloli / E-Hentai-Downloader

Download E-Hentai archive as zip file
GNU General Public License v3.0
1.87k stars 138 forks source link

support generating ComicInfo.xml #285

Open URenko opened 5 months ago

URenko commented 5 months ago

ComicInfo.xml has been used by Komga and Kavita etc.. The document is at https://anansi-project.github.io/docs/category/comicinfo Note this is different from #235, ComicInfo.xml is a XML file.

Regarding the title generation issue in #235, I directly use the title or title_jpn without parsing because that's what we see on E-hentai. We should not over-parse, people can process it later if needed.

As there is no consensus for element SubTitle in ComicInfo.xml yet (see https://github.com/anansi-project/comicinfo/issues/8 , https://github.com/anansi-project/comicinfo/issues/4 , https://github.com/anansi-project/comicinfo/pull/16 , https://github.com/anansi-project/comicinfo/issues/6 ), I use title_jpn for Title if available. And I leave an extra element EHD_info to store the legacy info, so that people can process it later. (Note that EHD_info will have more information than the standard ComicInfo.xml) For example, add SubTitle to ComicInfo.xml if there is a consensus in the future.