Join GitHub today
Feature request: mapping/rewrite rules for file location #14
Reported on Media Monkey forum by Teknojnky on Mon Oct 22, 2018 4:53 am
Ok for the feature request, I would like to suggest an option to modify the path (or more specifically, the drive) of the exported files.
for example, mediamonkey and itunes runs on windows, and the music files are on a network server.
the paths in both are \sauron\media\audio\ and so on
plex however runs on that network server itself, so the path is local
while it's not difficult to do a find/replace, its an additional step I have to stop and do any time I want to update the xml for plex.
I have to replace the //sauron with /data
I would think this could be easy to do, since MM stores the drive and path separately.
I could probably go in the script and hardcode it, but I figure this might be useful for other users who have network stored music, which makes the path different from what itunes/mediamonkey see.
Thinking a bit on how to this could be made generic/flexible, as the the replacements/substitutions will greatly depend on the way a user is using various storage locations for the files...
Possible idea is to have a table with a number of substitution (find-replace) rules ordered by priority: first try if 1st rule matches, if not try 2nd etc.
Rule would try to match locations starting with
for the original requestor's use-case this would the lead to a configuration of:
names of the fields need some more thought, as this is probably not intuitive