Personal Video Database

English => Support => Topic started by: rucknrun on May 18, 2011, 08:20:56 pm

Title: Regular Expression help
Post by: rucknrun on May 18, 2011, 08:20:56 pm
I need some quick help on what to put in the file scanner find and replace.

My root direcory should e

\rocksbox\filename

the actal file system directory is:

d:\Tversity\rocksbox\filename

I need the correct find and replace to remove D:\Tversity from all my filenames.

Any help on this is much appreciated.
Title: Re: Regular Expression help
Post by: rick.ca on May 18, 2011, 08:43:49 pm
Welcome, rucknrun.

I'm not sure whether you should be doing that or just using Preferences>Folders>Replace folders in file paths. Either way, it should be a straightforward replacement. :-\
Title: Re: Regular Expression help
Post by: rucknrun on May 18, 2011, 08:46:32 pm
I still am not sure what to put in there for the entries.

Thanks for the help.
Title: Re: Regular Expression help
Post by: rick.ca on May 19, 2011, 10:21:15 pm
Find: D:\Tversity
Replace with:
Title: Re: Regular Expression help
Post by: rucknrun on May 20, 2011, 03:27:10 pm
OK.  Does it actually replace the values in the database?  I have not seen it fix the directory structure in the actual database yet in the file path field.   The scanning keeps breaking my web server.  If it fixes it in the xml file export that is enough for me.

Thanks

Neil
Title: Re: Regular Expression help
Post by: rick.ca on May 20, 2011, 07:05:41 pm
Quote
If it fixes it in the xml file export that is enough for me.

You might have said that in the first place. Use a Replace (http://www.videodb.info/help/hlp_export.html#structure) statement in the export template.
Title: Re: Regular Expression help
Post by: rucknrun on May 21, 2011, 02:02:41 pm
Where do I find the export template?
Title: Re: Regular Expression help
Post by: rucknrun on May 21, 2011, 02:25:12 pm
Nevermind. I got it working with a string replace in the XML export template.  This will make my life much easier.  Now I can't seem to get it to Organize a Television Show correctly.