English > Support
File Scanner and Regular Expressions
patch:
--- Quote from: Tethien on January 26, 2010, 04:15:08 am ---I have a lot of TV series with only one season and the file name like :
Bad.Love.E01.HDTV.X264.720p-Encoder.mkv
Bad.Love.E02.HDTV.X264.720p-Encoder.mkv
--- End quote ---
This will not be recognized by the series scanner / regEx as it has no series number only an episode number.
To fix it you must first decide what you are going to change.
1) Rename your files to a standard format such as (a few other variants are also supported)
<Series name> s01e01 <ignored text>.<std file extension>
Note this can be semi automated if you files already have some structure, alternatively pasting the correct prefix can also be fast for a few files.
2) Modify the regex expressions in PVD to match your convention. Doing this involves deciding what is unique/consistent about your naming convention which the pvd regex can look for. Bearing in mind you do not want PVD to start classifying all your multi file movies as series.
For example I file my TV series as
<series directory>/<series name>/s1/<approximate series name><series number><episode number><ignored text>.<file extension>
So if "/s1/" or similar is found one directory up from the media file, I can be sure this is a TV series and I only need to find the episode number in the file name. Note I do not expect you to have the same convention, but you will have to be clear about what your convention is (consistent across all files you will be scanning. Next you will need to read a little about regex, it is confusing at first but is an efficient text search language. I recommend making a text file with examples of all the file path & naming conventions used in your collection. You can then rapidly experiment with a variety of regex expression using a text editor supporting regex such as EditPad pro Demo.
rick.ca:
--- Quote ---2) Modify the regex expressions in PVD to match your convention.
--- End quote ---
Note this does not appear to be a solution in this particular case. Tethien also needs to respect the fact a season must be recorded, even it's an arbitrary season 0 or 1. So the easiest solution, and perhaps the only one, is to add an "S00" or "S01" to the filename of such episodes.
patch:
--- Quote from: rick.ca on January 26, 2010, 06:28:47 am ---this does not appear to be a solution in this particular case. Tethien also needs to respect the fact a season must be recorded
--- End quote ---
If this data exist in the file path then it does not have to be repeated in the file name (hence my request for him to clarify what his convention is and my example using file path information).
However I agree, in the long term it is likely to be much easier to name series files with Series name, series number, & episode number all in the file name as expected by the current pvd regex expressions.
I suspect the file renaming tools you use rick (bat file creation or Directory Opus) would help Tethien the most.
rick.ca:
--- Quote ---If this data exist in the file path...
--- End quote ---
I'm confident he would have told us if it were. ;)
But point taken. The season can be anywhere in the pathname (if a regex statement that can find it is provided). But it has to be somewhere.
Tethien:
Thanks for yous reply.
But:
-My film only have one season. And parent directory name is film title. Not have any season number in path.
-I don't know how ? but if i rename the filename like that :
Bad.Love.HDTV.X264.720p-Encoder.E01.mkv
Bad.Love.HDTV.X264.720p-Encoder.E02.mkv
and then PVD recognized OK. Why ?
I can rename multi file by using Total Commander but if i rename i shuld re-rename back while reseed requested.
Sorry for my bad Englist.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version