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="RoChess" data-source="post: 822218" data-attributes="member: 18896"><p>Even comparing your structure to your simple expression I can see already why it would fail, because you have a space between "season" and "1", but no such space in your simple expression "\season<season>\" so it would indeed correctly ignore those and only look for "\season1\", etc. For the file one to match you forgot the (dot) between S01 and E005 as well.</p><p></p><p>As for the IFO issue, if ISO is a valid extension, then yes it will look at *EVERY* IFO file. You have to adjust the regular expression to filter out if you only want one of them to capture.</p><p></p><p>The simple expressions pretty much write themselves then:</p><p></p><p>For the DVD one use: <strong>\<series>\season <season> (DVD)\s<season>e<episode>.001 <title>\video_ts.ifo</strong></p><p>For the File one use: <strong>\<series>\season <season>\s<season>.e<episode>.005 <title>.<ext></strong></p><p></p><p>Now your problem is that I got a feeling the .001 and .005 are different numbers as well. To account for that it will be a lot harder with simple expressions, except to of course add a seperate simple expression for any variation of those numbers you have.</p><p></p><p>What you really need is a regular expression one, such as:</p><p></p><p style="margin-left: 20px"></p> <p style="margin-left: 20px"><strong>^(?:.*\\)?(?<series>[^\\]+?)\\[^\\]+\\(?:<s>?(?<season>\d+)[ _.\-\[\]]*[ex](?<episode>\d+)|(?:\#|\-\s)(?<season>\d+)\.(?<episode>\d+))(?:[ _.+-]+(?:<s>?\k<season>[ _.\-\[\]]*[ex](?<episode2>\d+)|(?:\#|\-\s)\k<season>\.(?<episode2>\d+))|(?:[ _.+-]*[ex+-]+(?<episode2>\d+)))*[ _.\-\[\]]*(?:\d+\s)?(?<title>(?![^\\].*?(?<!the)[ .(-]sample[ .)-]).*?)(?:\\video_ts\.(?<ext>[^.]*)|\.(?<ext>[^.]*))$</s></s></strong><s><s></s></s></p> <p style="margin-left: 20px"><s><s></s></s></p><p><s><s></s></s></p><p><s><s></s></s></p><p><s><s>Which works on both filenameing schemes and only accepts video_ts.ifo for the DVD ones to avoid double imports.</s></s></p><p><s><s></s></s></p><p><s><s>Enjoy.</s></s></p></blockquote><p></p>
[QUOTE="RoChess, post: 822218, member: 18896"] Even comparing your structure to your simple expression I can see already why it would fail, because you have a space between "season" and "1", but no such space in your simple expression "\season<season>\" so it would indeed correctly ignore those and only look for "\season1\", etc. For the file one to match you forgot the (dot) between S01 and E005 as well. As for the IFO issue, if ISO is a valid extension, then yes it will look at *EVERY* IFO file. You have to adjust the regular expression to filter out if you only want one of them to capture. The simple expressions pretty much write themselves then: For the DVD one use: [B]\<series>\season <season> (DVD)\s<season>e<episode>.001 <title>\video_ts.ifo[/B] For the File one use: [B]\<series>\season <season>\s<season>.e<episode>.005 <title>.<ext>[/B] Now your problem is that I got a feeling the .001 and .005 are different numbers as well. To account for that it will be a lot harder with simple expressions, except to of course add a seperate simple expression for any variation of those numbers you have. What you really need is a regular expression one, such as: [indent] [B]^(?:.*\\)?(?<series>[^\\]+?)\\[^\\]+\\(?:[s]?(?<season>\d+)[ _.\-\[\]]*[ex](?<episode>\d+)|(?:\#|\-\s)(?<season>\d+)\.(?<episode>\d+))(?:[ _.+-]+(?:[s]?\k<season>[ _.\-\[\]]*[ex](?<episode2>\d+)|(?:\#|\-\s)\k<season>\.(?<episode2>\d+))|(?:[ _.+-]*[ex+-]+(?<episode2>\d+)))*[ _.\-\[\]]*(?:\d+\s)?(?<title>(?![^\\].*?(?<!the)[ .(-]sample[ .)-]).*?)(?:\\video_ts\.(?<ext>[^.]*)|\.(?<ext>[^.]*))$[/s][/s][/B][s][s] [/s][/s][/indent][s][s] Which works on both filenameing schemes and only accepts video_ts.ifo for the DVD ones to avoid double imports. Enjoy.[/s][/s] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Expressions/Rules requests
Contact us
RSS
Top
Bottom