home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Expressions/Rules requests
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ToonGeneral" data-source="post: 162424" data-attributes="member: 53151"><p>Hi guys,</p><p></p><p>I've been trying to add MP-tvseries but I've been having some trouble getting a regexp to match my file format.</p><p></p><p>I spent about a 2.5hrs with a friend who knows a bit about reg exp getting it to work yesterday. We took one of the existing regexp and modded it to suit my needs. Finally got it working and then when I went to run it, the importer through up an error. Bit of searching on here and I found I was using the (really!) old version, duh!</p><p></p><p>I've installed the new version released yesterday (1.0) and I am running MP v.0.2.3 RC1. The reg exp I had working on the old plugin no longer works, but it does work on regexlib.com's expression tester, so I was wondering if perhaps mp-tvseries handles things differently somehow?</p><p></p><p>Anyway, I like to keep all my files named to the scene standard (with a couple of personal mods). If anything doesn't fit this model I will rename it so it does, it's needed doing for some time now so this might finally make me do it <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>My file name format:</p><p><series>.S<season>E<episode>.<title>.<format>.<source>.<specific>.<vidcodec>.<audiocodec>-<releasegroup></p><p>where the non-standard captures are;</p><p><format> = WS, FS etc</p><p><specific> = PROPER, REPACK etc</p><p><vidcodec> = XviD, DivX etc</p><p><audiocodec> = AC3, AC3 2CH etc</p><p><release group> = FoV, MEDiEVAL etc</p><p></p><p>An example would be:</p><p>Life.On.Mars.S02E06.Episode.06.WS.PDTV.iNTERNAL.XviD-SFM.avi</p><p></p><p>The reg exp ( I've separated it out on to multiple lines to make it more readable, obv normally it's all joined up):</p><p>(?<series>[^\\$]*)</p><p>( s| season| )(?<season>[0-9]{1,2})</p><p>( |)(x|e|ep)(?<episode>[0-9\W]+)</p><p>(( |)(-( |)|))(?<title>[^$]*?)</p><p>( (?<format>(WS)))?</p><p>( (?<source>(\w*DVD\w*|\w+TV)))?</p><p>( (?<specific>(PROPER|REPACK|iNTERNAL)))?</p><p>( (?<vidcodec>(XviD|DivX|DivX5)))?</p><p>( (?<audiocodec>(AC3|AC3 2CH|MP3)))?</p><p>(-(?<groupname>\w+))?$</p><p></p><p>I know mp-tvseries has no need of the other info but I need to have sections to match it so that the title can be identified correctly. At the moment, the series, season and episode all match correctly. However the title is then matched as everything remaining, as if the end groups aren't there.</p><p></p><p>The above example would give me the following in the importer (obv I've got replace '.'s with spaces turned on):</p><p>Series = Life On Mars</p><p>Season = 2</p><p>Episode = 6</p><p>Title = Episode 06 WS PDTV iNTERNAL XviD-SFM</p><p></p><p>Yet on regexlib.com the tester correctly gives me;</p><p>Series = Life On Mars</p><p>Season = 2</p><p>Episode = 6</p><p>Title = Episode 06</p><p>Format = WS</p><p>Source = PDTV</p><p>Specific = iNTERNAL</p><p>Vidcodec = XviD</p><p>Audiocodec = </p><p>Group = SFM</p><p></p><p>If anyone can see why or just wants to pick holes in my reg exp please help me out!</p></blockquote><p></p>
[QUOTE="ToonGeneral, post: 162424, member: 53151"] Hi guys, I've been trying to add MP-tvseries but I've been having some trouble getting a regexp to match my file format. I spent about a 2.5hrs with a friend who knows a bit about reg exp getting it to work yesterday. We took one of the existing regexp and modded it to suit my needs. Finally got it working and then when I went to run it, the importer through up an error. Bit of searching on here and I found I was using the (really!) old version, duh! I've installed the new version released yesterday (1.0) and I am running MP v.0.2.3 RC1. The reg exp I had working on the old plugin no longer works, but it does work on regexlib.com's expression tester, so I was wondering if perhaps mp-tvseries handles things differently somehow? Anyway, I like to keep all my files named to the scene standard (with a couple of personal mods). If anything doesn't fit this model I will rename it so it does, it's needed doing for some time now so this might finally make me do it :-) My file name format: <series>.S<season>E<episode>.<title>.<format>.<source>.<specific>.<vidcodec>.<audiocodec>-<releasegroup> where the non-standard captures are; <format> = WS, FS etc <specific> = PROPER, REPACK etc <vidcodec> = XviD, DivX etc <audiocodec> = AC3, AC3 2CH etc <release group> = FoV, MEDiEVAL etc An example would be: Life.On.Mars.S02E06.Episode.06.WS.PDTV.iNTERNAL.XviD-SFM.avi The reg exp ( I've separated it out on to multiple lines to make it more readable, obv normally it's all joined up): (?<series>[^\\$]*) ( s| season| )(?<season>[0-9]{1,2}) ( |)(x|e|ep)(?<episode>[0-9\W]+) (( |)(-( |)|))(?<title>[^$]*?) ( (?<format>(WS)))? ( (?<source>(\w*DVD\w*|\w+TV)))? ( (?<specific>(PROPER|REPACK|iNTERNAL)))? ( (?<vidcodec>(XviD|DivX|DivX5)))? ( (?<audiocodec>(AC3|AC3 2CH|MP3)))? (-(?<groupname>\w+))?$ I know mp-tvseries has no need of the other info but I need to have sections to match it so that the title can be identified correctly. At the moment, the series, season and episode all match correctly. However the title is then matched as everything remaining, as if the end groups aren't there. The above example would give me the following in the importer (obv I've got replace '.'s with spaces turned on): Series = Life On Mars Season = 2 Episode = 6 Title = Episode 06 WS PDTV iNTERNAL XviD-SFM Yet on regexlib.com the tester correctly gives me; Series = Life On Mars Season = 2 Episode = 6 Title = Episode 06 Format = WS Source = PDTV Specific = iNTERNAL Vidcodec = XviD Audiocodec = Group = SFM If anyone can see why or just wants to pick holes in my reg exp please help me out! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Expressions/Rules requests
Contact us
RSS
Top
Bottom