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="UNOPARATOR" data-source="post: 529460" data-attributes="member: 56815"><p><strong>Type: </strong>Parsing RegEx</p><p><strong>Description: </strong>This RegEx gets the series name from the first folder (so series like 90210 works), </p><p> handles up to 4 digit season numbers & up to 3 digit episode numbers for <strong>S##E##</strong> filename formating</p><p></p><p><u>Single episode example:</u></p><p><em>Show Name\Show Name - Season #\Show.Name.S##E##.Episode.Name.SOURCE.CODEC-RELEASEGROUP.extension</em></p><p><u>Double episode example:</u></p><p><em>Show Name\Show Name - Season #\Show.Name.S##E##<span style="color: Red">-##</span>.Episode.Name.SOURCE.CODEC-RELEASEGROUP.extension</em></p><p></p><p><strong><span style="color: Red">Make this RegEx single line before using:</span></strong></p><p>[CODE](?:(?<series>^.*?)\\)</p><p>(?:\k<series>(?: [\[|\(](?<year>\d{4})[\]|\)]|) - Season \d{1,4}\\)</p><p>(?:.*\.S(?<season>\d{1,4})E(?(\d{1,3}\-\d{1,3})(?<episode>\d{1,3})\-(?<episode2>\d{1,3})|(?<episode>\d{1,3})))(?(\.)\.</p><p>(?<title>.*)(?:\-(?<releaseGroup>.*)\.|\.)(?:(?<ext>[^.]*)))$[/CODE]</p><p>Note 1: for getting rid of SOURCE & CODEC etc. just add the necessary keywords to String Replacements...</p><p>Note 2: episode2, title, ReleaseGroup fields are optional, if they are not matched they don't break the rest of fields from parsing...</p><p></p><p><span style="color: Red">Updated [2009-11-09]</span>: </p><p>- Added support for "-" character in the title to correctly parse ReleaseGroup when the title includes "-" characters. </p><p>- Also added support for <em>Series Name [####]</em> or <em>Series Name (####)</em> folders under the main series folder...</p></blockquote><p></p>
[QUOTE="UNOPARATOR, post: 529460, member: 56815"] [B]Type: [/B]Parsing RegEx [B]Description: [/B]This RegEx gets the series name from the first folder (so series like 90210 works), handles up to 4 digit season numbers & up to 3 digit episode numbers for [B]S##E##[/B] filename formating [U]Single episode example:[/U] [I]Show Name\Show Name - Season #\Show.Name.S##E##.Episode.Name.SOURCE.CODEC-RELEASEGROUP.extension[/I] [U]Double episode example:[/U] [I]Show Name\Show Name - Season #\Show.Name.S##E##[COLOR="Red"]-##[/COLOR].Episode.Name.SOURCE.CODEC-RELEASEGROUP.extension[/I] [B][COLOR="Red"]Make this RegEx single line before using:[/COLOR][/B] [CODE](?:(?<series>^.*?)\\) (?:\k<series>(?: [\[|\(](?<year>\d{4})[\]|\)]|) - Season \d{1,4}\\) (?:.*\.S(?<season>\d{1,4})E(?(\d{1,3}\-\d{1,3})(?<episode>\d{1,3})\-(?<episode2>\d{1,3})|(?<episode>\d{1,3})))(?(\.)\. (?<title>.*)(?:\-(?<releaseGroup>.*)\.|\.)(?:(?<ext>[^.]*)))$[/CODE] Note 1: for getting rid of SOURCE & CODEC etc. just add the necessary keywords to String Replacements... Note 2: episode2, title, ReleaseGroup fields are optional, if they are not matched they don't break the rest of fields from parsing... [COLOR="Red"]Updated [2009-11-09][/COLOR]: - Added support for "-" character in the title to correctly parse ReleaseGroup when the title includes "-" characters. - Also added support for [I]Series Name [####][/I] or [I]Series Name (####)[/I] folders under the main series folder... [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Expressions/Rules exchange
Contact us
RSS
Top
Bottom