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 exchange
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: 1055603" data-attributes="member: 18896"><p>Variation of default parsing expression for filename processing:</p><p> </p><p><strong>[code]^(?:.*\\)?(?<series>[^\\]+?)[ _.\-\[]+(?:\(.{3,}\)[ _.\-]*)?(?:[s]?(?:eason\s?)?(?<season>\d+)[ _.\-\[\]]*[ex](?:pisode\s?)?(?<episode>\d+)|(?:\#|\-\s)(?<season>(?!(?:\d{4}.\d{2}.\d{2}|\d{2}.\d{2}.\d{4}))\d+)\.(?<episode>\d+))(?:[ _.+-]+(?:[s]?(?:eason\s?)?\k<season>[ _.\-\[\]]*[ex](?:pisode\s?)?(?<episode2>\d+)|(?:\#|\-\s)\k<season>\.(?<episode2>\d+))|(?:[ _.+-]*[ex+-]+(?:pisode\s?)?(?<episode2>\d+)))*[ _.\-\[\]]*(?<title>(?![^\\].*?(?<!the)[ .(-]sample[ .)-]).*?)\.(?<ext>[^.]*)$[/code]</strong></p><p> </p><p>This matches all the default expression files (as stated in: <a href="https://forum.team-mediaportal.com/threads/expressions-rules-exchange.21977/page-3#post-701043" target="_blank"><strong>https://forum.team-mediaportal.com/threads/expressions-rules-exchange.21977/page-3#post-701043</strong></a>), but it adds the following twist:</p><p> </p><p>"Show name example (Epsiode title) - S01E01 - BlaBla.ext"</p><p> </p><p>Is stripped from the "(Episode Title) - " part, so that the "Show name example" can result in a proper match with TheTVdB.</p><p> </p><p>I do not know of any TheTVdB series that uses parenthesis in their title, but I can not risk that, so this will not become part of the default parsing expression, but a simple manual effort for users who have such a crazy filename scheme.</p><p> </p><p>PS: Figures, just as I post it I am reminded of "The Office (US)" which would cause a conflict if "(US)" is removed. The only variations I am aware of at TheTVdB is UK and US, which are both 2 letters, so I've modified the expression to only remove "(...)" if the "..." are 3 or more characters (so if you run into an episode title of 2 chars you are screwed). I guess I could look for UK/US specifically, but there might be other country codes in use with TheTVdB that I'm not aware off, so please reply if that's the case or not.</p></blockquote><p></p>
[QUOTE="RoChess, post: 1055603, member: 18896"] Variation of default parsing expression for filename processing: [B][code]^(?:.*\\)?(?<series>[^\\]+?)[ _.\-\[]+(?:\(.{3,}\)[ _.\-]*)?(?:[s]?(?:eason\s?)?(?<season>\d+)[ _.\-\[\]]*[ex](?:pisode\s?)?(?<episode>\d+)|(?:\#|\-\s)(?<season>(?!(?:\d{4}.\d{2}.\d{2}|\d{2}.\d{2}.\d{4}))\d+)\.(?<episode>\d+))(?:[ _.+-]+(?:[s]?(?:eason\s?)?\k<season>[ _.\-\[\]]*[ex](?:pisode\s?)?(?<episode2>\d+)|(?:\#|\-\s)\k<season>\.(?<episode2>\d+))|(?:[ _.+-]*[ex+-]+(?:pisode\s?)?(?<episode2>\d+)))*[ _.\-\[\]]*(?<title>(?![^\\].*?(?<!the)[ .(-]sample[ .)-]).*?)\.(?<ext>[^.]*)$[/code][/B] This matches all the default expression files (as stated in: [URL='https://forum.team-mediaportal.com/threads/expressions-rules-exchange.21977/page-3#post-701043'][B]https://forum.team-mediaportal.com/threads/expressions-rules-exchange.21977/page-3#post-701043[/B][/URL]), but it adds the following twist: "Show name example (Epsiode title) - S01E01 - BlaBla.ext" Is stripped from the "(Episode Title) - " part, so that the "Show name example" can result in a proper match with TheTVdB. I do not know of any TheTVdB series that uses parenthesis in their title, but I can not risk that, so this will not become part of the default parsing expression, but a simple manual effort for users who have such a crazy filename scheme. PS: Figures, just as I post it I am reminded of "The Office (US)" which would cause a conflict if "(US)" is removed. The only variations I am aware of at TheTVdB is UK and US, which are both 2 letters, so I've modified the expression to only remove "(...)" if the "..." are 3 or more characters (so if you run into an episode title of 2 chars you are screwed). I guess I could look for UK/US specifically, but there might be other country codes in use with TheTVdB that I'm not aware off, so please reply if that's the case or not. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Expressions/Rules exchange
Contact us
RSS
Top
Bottom