Komet / MediaElch

Media Manager for Kodi
https://mediaelch.github.io/mediaelch-doc/about.html
GNU Lesser General Public License v3.0
829 stars 93 forks source link

Renamer: Allow replacing spaces with other delimiters #1082

Open bugwelle opened 3 years ago

bugwelle commented 3 years ago

Is your feature request related to a problem? Please describe. Spaces in filenames are sometimes not wanted. It should be possible to replace them with other delimiters.

Describe the solution you'd like I want to be able to replace spaces with _, . and other characters.

Additional context Requested on the Kodi Forum. See https://forum.kodi.tv/showthread.php?tid=136333&pid=2995289#pid2995289

norg commented 2 years ago

I would also like this feature :) I migrated my DB from TMM to MediaElch now and quite happy. Currently I run a bash script to convert the spaces to underscore.

Can you give some hints for someone new to the project but willing to try to implement it?

bugwelle commented 2 years ago

Hi,

thank you very much for your interest in MediaElch. :-)

There are few files that are of interest. RenamerDialog.cpp (+.h and .ui) as well as Renamer.cpp and its variants (MovieRenamer.cpp, ConcertRenamer.cpp etc) in src/renamer).

You'd need to change the UI to add a way to configure space->char transformation as well as need to modify the appropriate classes (MovieRenamer, etc).

For building MediaElch, see https://mediaelch.github.io/mediaelch-doc/contributing/build/index.html

Regards, Andre