metafates / mangal

📖 The most advanced (yet simple) cli manga downloader in the entire universe! Lua scrapers, export formats, anilist integration, fancy TUI and more!
MIT License
1.38k stars 52 forks source link

Allow updating metadata of already downloaded files #124

Closed oae closed 1 year ago

oae commented 1 year ago

Feature Description

Is it possible to add a command to update ComicInfo.xml, series.json, and cover.jpg of already downloaded files?

Solution you would like

No response

Alternatives you have considered

No response

Additional context

We can already update metadata for future chapters with the new anilist command but it doesn't update already downloaded files

metafates commented 1 year ago

Hello! In theory - yes, it's possible. But updating ComicInfo.xml requires much more work than cover or series.json. I'll try to do my best

metafates commented 1 year ago

Okaay, it was was not easy indeed, but in the end looks like everything works smoothly.

The command will be

mangal inline anilist update --path <manga directory>

It will update ComicInfo.xml of each CBZ file, download new cover and update series.json 🥳