MediaElch icon indicating copy to clipboard operation
MediaElch copied to clipboard

Renamer: Allow replacing spaces with other delimiters

Open bugwelle opened this issue 4 years ago • 2 comments

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

bugwelle avatar Dec 14 '20 08:12 bugwelle

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?

norg avatar Jan 14 '22 21:01 norg

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

bugwelle avatar Jan 16 '22 16:01 bugwelle