hurlenko / mloader

Download manga from mangaplus.shueisha.co.jp
GNU General Public License v3.0
155 stars 34 forks source link

Partially retain non-alphanumeric punctuation in filenames #53

Open rokibhasansagar opened 11 months ago

rokibhasansagar commented 11 months ago

Any non-alphanumeric punctuation are being discarded as of now

When downloading a manga through the app, if there are any punctuation (like : or ' etc. ), in the Manga's Title or Chapter's Title, they are just replaced with a white-space.

It would be good if the formatting for naming images/cbz/folder should've retained some of the punctuation to make it look more readable.

Consider this for example: https://mangaplus.shueisha.co.jp/titles/100248

Manga Name: Nue's Exorcist, but it results as Nue S Exorcist For Chapter's names: : are deleted and ' are replaced by a white-space

What should be done?

If these can be implemented, please do so 🙏🏼

rokibhasansagar commented 10 months ago

After many attempts, I have modified my code for fixing this to fit my purpose.

It also adds the Publication year and Group name to the filename.

Now, Chapter 1: Portrait view of the sky is saved as Nue's Exorcist/Nue's Exorcist - c001 (2023) (web) [Chapter 1 - Portrait View Of The Sky] [fr3akyphantom].cbz