English > Support
Difficulty importing a TV Show/Series (others work)
rick.ca:
--- Quote ---I accidentally deleted some of my default REGEXP's, and now no TV series work at all. Could you help me restore them?
--- End quote ---
Following is the File Scanner section of a default configuration. You can use this to replace the necessary lines (probably just the RegExp= line) of the pvdconf.ini file in your Application Data folder.
--- Quote ---I've tried renaming all of my Burn Notice episodes to remove the period between S# and the E# in the names. Could you help me?
--- End quote ---
I suggest you read the topic patch provided a link to. Even if someone provides you with a regex that works for this particular filename pattern, it won't help much if you use different a different pattern for other series. You're going to have to decide how your files are going to be named, and then provide a set of regex that will work with that. The filenames don't have to be perfectly consistent, just consistent enough for the regex you provide.
--- Code: ---[FileScanner]
ScanFolders=
Extensions=.avi;.divx;.mpg;.mpeg;.ifo;.vob;.mov;.vid;.mp4;.mkv;.dat;.ts;.rm;.rmvb;.wmv;.iso;.img;.ogm;.m2ts;.m2v;.m1v;.mpv;.mpgv;.qt;.flv
ScanOnStart=0
SmartEpisodes=1
SmartDiscs=1
SmartDVD=1
RegExps="(?i)^.*\\(?P<title>.*)(s|\b)(?P<season>[0-9]{1,3})e(?P<episode>[0-9]{1,3}) (?i)^.*\\(?P<title>.*).?-.?(?P<season>[0-9]{1,3})x(?P<episode>[0-9]{1,3}).?-.?(?P<eptitle>\w*\b) (?i)^.*\\(?P<title>.*)\\(DISC|DISK|DVD).?\d?\\VIDEO_TS\\.*\..* (?i)^.*\\(?P<title>.*)\\VIDEO_TS\\.*\..* (?i)^.*\\(?P<title>.*)\\(VIDEO_TS|vts_\d\d_\d)\..* (?i)^.*\\(?P<title>.*)\\(DISC|DISK).?\d?\\BDMV\\STREAM\\.*\..* (?i)^.*\\(?P<title>.*)\\BDMV\\STREAM\\.*\..* (?i)^.+\\(?P<title>[^\\]+)[^\\]+(?P<year>(19|2\d)\d{2}) (?i)^.*\\(?P<title>.*)\\.{0,2}\..{3,4} (?i)^.*\\(?P<title>.*)\..* "
FindExps="(?i).?((?<!\b).){0,5}Rip (?i)\bCD\d{1,2}\b (?i)\brus\b (?i)\ben\b (?i)\w?((?<!_)\w)+\.((ru)|(com)|(org)|(tv)|(ws))\b (\(|\[)$ \[.*\]|\(.*\) (\s|-|\)|\]|\.|_)*$ \.|_ "
RepWithExps=" "
IgnoreExps=""
--- End code ---
RedDunce:
Thank you so much. <3 this program!
nostra:
--- Quote from: RedDunce on August 11, 2009, 12:45:06 am ---Here is a list of all of the files I want to be added properly:
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 1\Burn.Notice.S01.E01_[Pilot].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 1\Burn.Notice.S01.E02_[Identity].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 1\Burn.Notice.S01.E03_[Fight.or.Flight].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 1\Burn.Notice.S01.E04_[Old.Friends].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 1\Burn.Notice.S01.E05_[Family.Business].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 1\Burn.Notice.S01.E06_[Unpaid.Debts].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 1\Burn.Notice.S01.E07_[Broken.Rules].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 1\Burn.Notice.S01.E08_[Wanted.Man].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 1\Burn.Notice.S01.E09_[Hard.Bargain].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 1\Burn.Notice.S01.E10_[False.Flag].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 1\Burn.Notice.S01.E11_[Loose.Ends].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 2\Burn.Notice.S02.E01_[Breaking.and.Entering].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 2\Burn.Notice.S02.E02_[Turn.and.].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 2\Burn.Notice.S02.E03_[Trust.Me].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 2\Burn.Notice.S02.E04_[Comrades].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 2\Burn.Notice.S02.E05_[Scatter.Point].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 2\Burn.Notice.S02.E06_[Bad.Blood].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 2\Burn.Notice.S02.E07_[Rough.Seas].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 2\Burn.Notice.S02.E08_[Double.Booked].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 2\Burn.Notice.S02.E09_[Good.Soldier].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 2\Burn.Notice.S02.E10_[Do.No.Harm].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 2\Burn.Notice.S02.E11_[Hot.Spot].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 2\Burn.Notice.S02.E12_[Seek.and.Destroy].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 2\Burn.Notice.S02.E13_[Bad.Breaks].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 2\Burn.Notice.S02.E14_[Truth.and.Reconciliation].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 2\Burn.Notice.S02.E15_[Sins.of.Omission].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 2\Burn.Notice.S02.E16_[Lesser.Evil].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 3\Burn.Notice.S03.E01_[Friends.and.Family].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 3\Burn.Notice.S03.E02_[Question.and.Answer].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 3\Burn.Notice.S03.E03_[End.Run].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 3\Burn.Notice.S03.E04_[Fearless.Leader].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 3\Burn.Notice.S03.E05_[Signals.and.Codes].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 3\Burn.Notice.S03.E06_[The.Hunter].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 3\Burn.Notice.S03.E07_[Shot.In.The.Dark].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 3\Burn.Notice.S03.E08_[Friends.Like.These].avi
C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 3\Burn.Notice.S03.E09_[Long.Way.Back].avi
--- End quote ---
This expression should work:
--- Code: ---(?i)^.*\\(?P<origtitle>.*)\.S(?P<season>[0-9]{1,3})\.E(?P<episode>[0-9]{1,3})_\[(?P<eptitle>.*)\]\..*
--- End code ---
rick.ca:
--- Code: ---(?i)^.*\\(?P<origtitle>.*)\.S(?P<season>[0-9]{1,3})\.E(?P<episode>[0-9]{1,3})_\[(?P<eptitle>.*)\]\..*
--- End code ---
Mere mortals have to think about what such things mean. Here's my stab at it:
(?i) - case insensitive mode
^.*\\ - from the beginning of the string, match any character any number of times until "\"
(?P<origtitle>.*)\.S - match any character until ".S" and save it as <origtitle>
(?P<season>[0-9]{1,3})\.E - match a 1-3 digit number before ".E" and save it as <season>
(?P<episode>[0-9]{1,3})_\[ - match a 1-3 digit number before "_[" and save it as <episode>
(?P<eptitle>.*)\]\..* - match any character until "]." and save it as <eptitle>
That seems to make sense, except for the ^.*\\. Isn't that going to match the whole pathname up to the ".E" in the filename?
This is a good example of how a regex might be added to handle a particular form of filename, but will only work for that particular form. It's much more powerful and convenient to use a simpler file naming convention like <origtitle> S00 E00 <eptitle>.avi. Then everything can be recognized properly just by one regex finding the "S00 E00" part.
nostra:
--- Quote ---Mere mortals have to think about what such things mean. Here's my stab at it:
--- End quote ---
OK, Rick. You are a better teacher than me anyway ;)
--- Quote ---That seems to make sense, except for the ^.*\\. Isn't that going to match the whole pathname up to the ".E" in the filename?
--- End quote ---
No, why should it? It will match C:\Users\Administrator\Documents\Torrenting\Completed\Video\TV\Burn Notice\Season 3\
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version