db importing option

Got an idea, post it here

db importing option

Postby Atlas on Wed Mar 16, 2005 6:52 pm

Any chance of getting a toggle button in setup for "Import files that have metamask info only"? Or something like that. Maybe check if the regex calls all return nothing then don't add to/remove from the db. Could be an 'if' in the writing of the XML? Or even maybe an option on the category dealing with displaying db items with no metamask.


This thread has more details on what I'm trying to do.

http://www.xlobby.com/forum/viewtopic.php?t=2959

Thanks!
Atlas
 
Posts: 134
Joined: Wed Apr 14, 2004 3:43 am
Location: McKinney, TX

Postby stevenhanna6 on Wed Mar 16, 2005 8:22 pm

you were on the right track with "ignore mask", its the exact same as a meta masks. If a file matches an "ignore mask" it will not be imported...so in your case

\\(?<name>.*)\\(?<episodedate>\d{4})-(?<episodetime>\d{4})_01\.tp
\\(?<name>.*)\\(?<episodedate>\d{4})-(?<episodetime>\d{4})_02\.tp

should ignore those _01 and _02 files. I think thats what you want right? you dont want those imported?
stevenhanna6
 
Posts: 904
Joined: Tue Feb 18, 2003 10:39 am
Location: Ontario, Canada

Postby Atlas on Wed Mar 16, 2005 9:11 pm

That's exactly what I wanted! Already tried the ignore mask and it works. You da man! Thanks!
Atlas
 
Posts: 134
Joined: Wed Apr 14, 2004 3:43 am
Location: McKinney, TX

Postby stevenhanna6 on Wed Mar 16, 2005 9:28 pm

cool :)
stevenhanna6
 
Posts: 904
Joined: Tue Feb 18, 2003 10:39 am
Location: Ontario, Canada