metafates / mangal

📖 The most advanced (yet simple) cli manga downloader in the entire universe! Lua scrapers, export formats, anilist integration, fancy TUI and more!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Have the date of the chapter come from the source

Belphemur opened this issue · comments

Feature Description

Today, we have 2 choices:

  1. Either have the date of publication of the manga as the date of the chapter
  2. Have the date of today/download as the date of the chapter.

A lot of source provide the date of when the chapter was added to them.
It would be great to be able to set that directly on the chapter themselve and use it to generate the ComicInfo.xml file.

Solution you would like

Make the Chapter struct have the year, month, day fields and have the lua script be able to set it up.

If I have the time, I could make a PR for this, it shouldn't be too hard.

Alternatives you have considered

No response

Additional context

No response

This was commented on here #117
I'm not entirely sure why it can't be scraped from sites like Mangadex and Mangasee, since both provide the date. (Mangadex even gives the exact timestamp)

I had an PR for this, but wasn't getting any response from @metafates so I simply forked the project:
https://github.com/Belphemur/mangal/

I've implemented chapter date for Mangadex and any other source that supports it, any LUA source can easily give it too.
Also added webp conversion to reduce size of CBZ. Better recognition of chapter number, because mangal don't like chapter like "140.5" without the changes I made.