English > Support
File Scanner and Regular Expressions
rick.ca:
I forgot what I reported at the beginning of this topic...
--- Quote ---When adding new episode files to existing series, the existing title and year are removed. Title is changed to "#S.E" and Year to "-1."
--- End quote ---
It also doesn't work if the series does not already exist. I don't know of any other circumstance where might see Episode title being passed from the filename. What do you mean by "<epititle> works here"?
I tried a few more things with the replace expressions issue:
I created a new database, using the same configuration file. The same errors occurred.
I removed the configuration file, forcing the program to create a new default configuration on startup. The same errors occurred with both the new database created in the previous test, and my regular database.
The first error doesn't always happen at the same time. Once I was able to change an expression's position in the list and close and reopen the Preferences dialog without the error happening. Then I tried to make another change, and the error happened immediately. The second error seems more consistent.
nostra:
--- Quote ---It also doesn't work if the series does not already exist. I don't know of any other circumstance where might see Episode title being passed from the filename. What do you mean by "<epititle> works here"?
--- End quote ---
Ehm, sorry, it seems like I have fixed the issue as you reported it the first time, but forgot about it ::) That's why it works here.
--- Quote ---I created a new database, using the same configuration file. The same errors occurred.
I removed the configuration file, forcing the program to create a new default configuration on startup. The same errors occurred with both the new database created in the previous test, and my regular database.
The first error doesn't always happen at the same time. Once I was able to change an expression's position in the list and close and reopen the Preferences dialog without the error happening. Then I tried to make another change, and the error happened immediately. The second error seems more consistent.
--- End quote ---
You can stop investigating this issue as I have already found where the problem was and fixed it.
rick.ca:
Moved here from Beta forum—to provide a place to discuss how to modify the regex in the file scanner configuration so the scanner will better recognize your files.
rick.ca:
I've mentioned several times the effective use of the file scanner involves finding one's preferred balance between
* the ability of the regex provided to recognize a variety of different filename structures, and
* the consistency of the file naming structure (or "convention").
In other words, we have a choice of
* including a comprehensive set of regex in the configuration to recognize a wide range of different filename structures, or
* renaming all files to comply with a file naming convention which is recognized correctly by a simple set of regex.
There is no excaping the necessity of learning at least a little bit about regex. If one chooses the latter approach (to avoid having to adapt the regex to their circumstances), they will soon realize the best method of implementing the second step is to use a regex file renamer.
So here are some references I've found helpful...
Regular Expressions:
* Wikipedia—An introduction to regex
* Regex Cheat Sheet—as the name implies, a 2 minute quick reference
* 30 Minute Regex Tutorial—a little more comprehensive
* Regular-Expressions.info Regex Tutorial—nostra's recommendation (I agree, it's most comprehensive source available)
* XBMC Wiki on TV Shows—the application of regex to a similar situation (you have to recognize and ignore the XBMC-specific parts)
* XBMC forum discussion—we're not the only ones who find this challenging ;)
File Renaming:
* Flexible Renamer—an excellent freeware file renamer
darichman:
Hello hello.
I've taken the plunge and have started looking at importing TV shows in PVD. I have all my TV shows in the file format...
E:\Television\Dark Angel\Season 2\Dark Angel - 2-03. Proof of Purchase
The default filescanner is picking up the show title as "Dark Angel - 1" and "Dark Angel - 2" etc and not picking up the Episode Name part of the filename. Before I go and to a whole lot of manual work, is there any way to set the filename scanner to pick up the season and the episode name if all my filenames are in this format?
I've been fiddling with the RegExps options for the file scanner to try and get PVD to pick files up as
<title> - <season>-<episode>. <eptitle>
So far I haven't had any luck. If anyone has any suggestions, I'd be really grateful :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version