Expressions/Rules requests (1 Viewer)

Sphero

Portal Pro
June 4, 2008
82
0
Home Country
Netherlands Netherlands
I am having trouble parsing my formula1 races.

Can anyone help me with a regex for: Formula1 2008x01.avi

Thanks a lot
 

Sphero

Portal Pro
June 4, 2008
82
0
Home Country
Netherlands Netherlands
try:
(?<series>[\w]+)\s*(?<season>\d{4})x(?<episode>\d{1,2})
assuming 2008 is the "season"
if not, you can drop the season section.

try it out and let me know.


Great, ill give this a try tonight. I have 3 more questions:

1) Should I keep the default regexes enabled?
2) The above regex should be a regex or simple?
3) I can add it at the bottom?
 

Erazor2

Portal Member
September 6, 2007
11
0
Home Country
Germany Germany
Hi,
I'm looking for a search phrase which covers filenames like this:
.\The 4400\01\The 4400 - 01x03 - Episode Title - language.avi
and
.\The 4400\01\The 4400 - 01x01 02 - Episode Title - language.avi
where 02 is the episode2 tag.
I hope, somebody can help me

----

figured it out myself, but if someone could check the regex?
Code:
^[^\\$]+\\[^\\$]+\\((?<series>[^\\$$]+)( - ))((?<season>[\d]+)x(?<episode>[\d]+)([\s]+(?<episode2>[\d]+))?( - ))((?<title>[^\\$]*)( - ))(?<language>[^\\$]*)\.(?<ext>[^\\$]+)$
 

Sirc

Portal Member
October 16, 2008
13
0
Hi,

I'm looking for format rules that will parse Audio/Video codecs properly. I currently have this:

Code:
<Enabled>1<Format>x () fps<FormatAs> 
<Enabled>1<Format>() , ()<FormatAs> 
<Enabled>1<Format>V_MPEG4/ISO/AVC<FormatAs>H264
<Enabled>1<Format>MPA1L3<FormatAs>MP3
<Enabled>1<Format>MPA2L3<FormatAs>MP3
<Enabled>1<Format>V_MPEG2<FormatAs>MPEG2
<Enabled>1<Format>MPEG-2V<FormatAs>MPEG2
<Enabled>1<Format>DIV3<FormatAs>DIVX
<Enabled>1<Format>DX50<FormatAs>DIVX
<Enabled>1<Format>A_FLAC<FormatAs>FLAC
<Enabled>1<Format>A_AAC/MPEG4/LC/SBR<FormatAs>AAC
<Enabled>1<Format>A_AAC<FormatAs>AAC
<Enabled>1<Format>A_AC3<FormatAs>AC3

However this doesn't filter H264 codec and DX50, so I get errors such as:

Code:
10/20/2008 6:37:57 PM - This Logofile does not exist..skipping: D:\Applications\MediaPortal\MediaPortal\skin\Black & White 1080\TVSeries_Logos\BlackSilver\Glas\Misc\V_MPEG4.png
10/20/2008 6:37:57 PM - This Logofile does not exist..skipping: D:\Applications\MediaPortal\MediaPortal\skin\Black & White 1080\TVSeries_Logos\BlackSilver\Glas\Misc\ISO.png
10/20/2008 6:37:57 PM - This Logofile does not exist..skipping: D:\Applications\MediaPortal\MediaPortal\skin\Black & White 1080\TVSeries_Logos\BlackSilver\Glas\Misc\AVC.png

Just looking to have my logos display properly without having to make individual files for each part of the H264 codec or DX50.
 

Delinquent

New Member
August 1, 2008
3
0
Home Country
Hello peoples!

OK, my strings are working to a extent, however after doing a bit of reading around no one has a answer for this one yet, how does the parser deal with a two part epsiode as 1 file but with two different episode names? I've been trying to find out if there is an additional <title> tag that allows you to record a second title name.

For example:

<Show_Name>\Season <Show_Season>\<Show_Name> <Show_Season>x<Episode_Number>-<Episode2_Number> - <Episode_Name>, <Episode2_Name>.avi
eg: Greys Anatomy\Season 2\Greys Anatomy 02x26-27 - Deterioration Of The Fight Or Flight Response, Losing My Religion.avi

this is one of my current parsing strings that i know works by giving both episode numbers, but not both titles

(?<series>[\w .,'!&$]*)\\[\w .,'!&$]*\\[\w .,'!&$]*(?<season>[0-9]{2})[x](?([0-9]{2}-[0-9]{2})(?<episode>[0-9]{2})-(?<episode2>[0-9]{2})|(?<episode>[0-9]{2})).{3}(?<title>[^$]*?)\.(?<ext>[^.]*)

Returns this:
Code:
<series>Greys Anatomy</series>
        <season>02</season>
        <episode>26</episode>
        <episode2>27</episode2>
        <title>Deterioration Of The Fight Or Flight Response, Losing My Religion</title>
        <ext>avi</ext>

Is what im asking at all possible?
 

duppsko

Portal Member
October 4, 2006
30
0
Home Country
Norway Norway
My episodes are called only 01,02 etc. My double episodes are called 01&02, but that i can change as there arent so many of them.
What do i write to make it show double episodes?
Like if i have 01&02, it will show both 1 and 2 in the series episode view.
 

crazyfool

Portal Pro
October 8, 2008
237
4
noob here lol... i think i got this right tho... i have my episodes set up as follow:
Series\Season x\Episode x.mpg
now am i right in thinking using this to parse the files:

<series>\Season <season>\Episode <episode>.<ext>

would work fine or would there be an easier way to name the files so i have less work to do as in manually adding things...
 

Users who are viewing this thread

Top Bottom