Benni-chan / nzbToAniDB

postprocessing script for animes (to use with sabnzbd+ or nzbget or even as stand alone) to rename files after a sync with anidb.net. files can additionally be renamed via tvdb
24 stars 7 forks source link

Rename/Move Removes "!" character #17

Closed avluis closed 10 years ago

avluis commented 10 years ago

Is this intended? The exclamation mark (point) is removed from the filename and/or destination folder name. e.g.:

Hashed: ed2k://|file|/volume1/downloads/completed/anime/[Vivid-Asenshi] Akame ga Kill Theater - 09 [057D3476].mkv|20766269|0c85dc9d60914de6179bebe1b650ecb6| Identified: [Vivid-Asenshi] Akame ga Kill! (Akame ga Kill!) - S9 - Aka Kill! Gekijou: Dai Kyuu Wa - Mensetsu (AkaKILL! Theater: 9th Elimination - Job Interview) Renaming to: Akame ga Kill - S9 - AkaKILL Theater 9th Elimination - Job Interview - [Vivid-Asenshi]www.mkv Moving to: /volume1/video/anime/Akame ga Kill Added to mylist.

Benni-chan commented 10 years ago

yes, currently "!" is not a valid character in the script. I'll check, if there are any problems on different os/filesystems with an exclamation mark and will add it, if there are no problems.

avluis commented 10 years ago

OK, thank you. Would there be any way to manually add it (in case it is not possible with other OS/Filesystems) as my Linux box does support it (Synology DS1513+)?

Benni-chan commented 10 years ago

in the file anidb.py in line 129 change

validFilenameChars = "-_.;()[]`' %s%s" % (string.ascii_letters, string.digits)

to

validFilenameChars = "-_.;()[]`'! %s%s" % (string.ascii_letters, string.digits)
avluis commented 10 years ago

Thank you!