mloader icon indicating copy to clipboard operation
mloader copied to clipboard

Partially retain non-alphanumeric punctuation in filenames

Open rokibhasansagar opened this issue 2 years ago • 1 comments

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?

  • Just delete any ' (So that the manga title should be Nues Exorcist at least)
  • For chapters, replace : with - along with previous fix
    • Chapter 23: Nue's Candidate is saved with Chapter 23 Nue s Candidate, it should be Chapter 23 - Nues Candidate

If these can be implemented, please do so 🙏🏼

rokibhasansagar avatar Dec 12 '23 12:12 rokibhasansagar

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

rokibhasansagar avatar Jan 07 '24 12:01 rokibhasansagar