thebrokenfacade / hdoujin-metadata-converter

4 stars 1 forks source link

would you like to support info.txt generated by Hitomi-Downloader? #1

Open lukemin opened 3 years ago

lukemin commented 3 years ago

I downloaded my comics by Hitomi-Downloader. Would you like to add the function to collect metadata from the info.txt generated by Hitomi-Downloader?

The language of info.txt is as the same as the setting in General Preferences. So for one comic, There may have several different info.txt. Take Chinese and English as example: Chinese : info.txt 图库 id: 1172760

标题: 【中國語】NanoCore「納米核心」2018.1月R18の絵のコレクション②

艺术家: N/A

分组: N/A

类型: imageset

系列: nano core

人物: N/A

标签: female:anal, female:mother, female:stockings, female:x-ray, incest

语言: Chinese

English: info.txt

Gallery ID: 1172760

Title: 【中國語】NanoCore「納米核心」2018.1月R18の絵のコレクション②

Artists: N/A

Groups: N/A

Types: imageset

Series: nano core

Characters: N/A

Tags: female:anal, female:mother, female:stockings, female:x-ray, incest

Language: Chinese

thebrokenfacade commented 3 years ago

I can take a look at implementing that for you.

Just to be clear, you want to convert a chinese info.txt that was generated by hitomi-downloader from hitomi.la to info.json for use with the lanraragi hdoujin plugin?

lukemin commented 3 years ago

Yes, I am using LRR to manage my mangas. But hdoujin plugin does not support info.txt generated by hitomi-downloader. At beginning, I set language of hitomi-downloader to Chinese. Then I found that info.txt generated by hitomi-downloader in English was very similar to Hdoujin plugin format. So I tried to modified the plugin by myself, finally I realized that I have underestimated the difficulties for me who was lack of programing knowledge to do so.

It will be better if you implement a plugin directly for LRR to collect the metainfo from info.txt generated by hitomi-downloader. Thanks a lot.

thebrokenfacade commented 3 years ago

I do not know perl, so I can't code a new plugin. That is why I made this info.txt conversion script.

I have posted a new file "hitomi-conv-ch.py" that should convert your info.txt files to info.json files so they can be used with lanraragi's hdoujin plugin.

I know it is not the perfect solution, but it does work.

lukemin commented 3 years ago

thanks a lot

lukemin commented 3 years ago

hitomi-conv-ch.py really worked for me. Could you please update the batchconv.py too? I have more the 7000 mangas right now, It would take me very long time to converter the info.txts one by one manually.

thebrokenfacade commented 3 years ago

I can work on that for you. I will be busy for the next few days, so it may take a while to get that completed.

lukemin commented 3 years ago

Thanks a lot. Wish you and your family a happy new year and a nice vacation.