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: 616822" data-attributes="member: 18896"><p>Ok, first attempt at a new default expression:</p><p></p><p style="margin-left: 20px"><strong>^.*?\\?(?<series>[^\\$]+?)[ .-]+[\#s]?(?<season>\d+)[ .-]?[ex.](?<episode>\d+)[+-]?(?<episode2>\d+)?[ .-]*(?<title>(?![^\\]*?sample)[^$]*?)\.(?<ext>[^.]*)$</strong></p><p></p><p>This should work for the following files:</p><p></p><ul> <li data-xf-list-type="ul">Show.Name.S01E01.avi</li> <li data-xf-list-type="ul">Show Name - s01e01.avi</li> <li data-xf-list-type="ul">Show Name - S01E01 - Episode Title.avi</li> <li data-xf-list-type="ul">Show Name - S01 E01 - Episode Title.avi</li> <li data-xf-list-type="ul">Show Name - S01.E01 - Episode Title.avi</li> <li data-xf-list-type="ul">Show Name - S01-E01 - Episode Title.avi</li> <li data-xf-list-type="ul">Show Name 1x01.avi</li> <li data-xf-list-type="ul">Show Name #1.01.avi</li> <li data-xf-list-type="ul">Show Name #1.01 - Episode Title.avi<br /> </li> <li data-xf-list-type="ul">Show Name - S01E01-02 - Two Part Episode.avi</li> <li data-xf-list-type="ul">Show Name - S01E01+02 - Two Part Episode.avi<br /> </li> <li data-xf-list-type="ul">Show Name - S01E100 - Three Digit Episode.avi</li> </ul><p></p><p>There are a lot more combinations, but you get the general idea.</p><p></p><p>I need feedback from tester, or these type of modifications will never make it into the plugin by default.</p><p></p><p>PS: Be sure to put this expression at the first position to prevent interference from the other expressions. Preferably disable all the other expressions and let me know which filenames do not work, so I can improve it. This expression is not meant to work for the "\Series Name\Season 1\01 - Episode Title.avi" scheme, but those will be supported via a seperate one.</p><p></p><p>The <strong>4-digit episodes</strong> from TopGear will work as well, provided there is a 'S00E0000' or '00x0000' or 'S00 E0000' or 'S00.E0000' or 'S00-E0000' syntax present. Without the seperator it won't work. That doesn't mean it is not possible to support 00222 for S00E222, but that would require hardcoded exceptions which run a high risk of false positives.</p><p></p><p>Smash: you would do better adding a String Replacement rule that turns "Top Gear - 00" into "Top Gear - S00E" (with 'before' enabled), so that the above expression works without having to rename a lot of files.</p></blockquote><p></p>
[QUOTE="RoChess, post: 616822, member: 18896"] Ok, first attempt at a new default expression: [INDENT][b]^.*?\\?(?<series>[^\\$]+?)[ .-]+[\#s]?(?<season>\d+)[ .-]?[ex.](?<episode>\d+)[+-]?(?<episode2>\d+)?[ .-]*(?<title>(?![^\\]*?sample)[^$]*?)\.(?<ext>[^.]*)$[/b][/INDENT] This should work for the following files: [LIST] [*]Show.Name.S01E01.avi [*]Show Name - s01e01.avi [*]Show Name - S01E01 - Episode Title.avi [*]Show Name - S01 E01 - Episode Title.avi [*]Show Name - S01.E01 - Episode Title.avi [*]Show Name - S01-E01 - Episode Title.avi [*]Show Name 1x01.avi [*]Show Name #1.01.avi [*]Show Name #1.01 - Episode Title.avi [*]Show Name - S01E01-02 - Two Part Episode.avi [*]Show Name - S01E01+02 - Two Part Episode.avi [*]Show Name - S01E100 - Three Digit Episode.avi [/LIST] There are a lot more combinations, but you get the general idea. I need feedback from tester, or these type of modifications will never make it into the plugin by default. PS: Be sure to put this expression at the first position to prevent interference from the other expressions. Preferably disable all the other expressions and let me know which filenames do not work, so I can improve it. This expression is not meant to work for the "\Series Name\Season 1\01 - Episode Title.avi" scheme, but those will be supported via a seperate one. The [b]4-digit episodes[/b] from TopGear will work as well, provided there is a 'S00E0000' or '00x0000' or 'S00 E0000' or 'S00.E0000' or 'S00-E0000' syntax present. Without the seperator it won't work. That doesn't mean it is not possible to support 00222 for S00E222, but that would require hardcoded exceptions which run a high risk of false positives. Smash: you would do better adding a String Replacement rule that turns "Top Gear - 00" into "Top Gear - S00E" (with 'before' enabled), so that the above expression works without having to rename a lot of files. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Expressions/Rules requests
Contact us
RSS
Top
Bottom