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

Wrong ComicInfo.xml generation when date in metadata is incomplete #114

Closed oae closed 1 year ago

oae commented 1 year ago

Describe the bug

If the date field is incomplete in anilist (for example year and month exist but the day is null), mangal writes 0 as the value in ComicInfo.xml. This causes komga to fail.

image

Reproduction steps

You can see an example manga in this link

image

Expected behavior

It should not put an invalid value for dates.

Additional context

No response

Operating System

Linux

metafates commented 1 year ago

Hi! Thanks for noticing! Will fix