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="pgjensen" data-source="post: 826582" data-attributes="member: 73843"><p><strong>Type: </strong></p><p>Parsing - Regex</p><p></p><p><strong>Description:</strong></p><p>I download shows from all over the place and rarely rename them. This is perfect for people that are fine with leaving filenames as they originally were (I.e. to continue to share with torrents and only having to worry about directory structure changes). All "scene" naming conventions are supported here, and more added. I ignore any season numbers from the filenames themselves and grab the season from the 2nd directory. Sample files currently are not ignored since I use MKV/AVI ReSample to .srs files on them, but if they're in a Sample folder within the season folder the regex's could be setup to ignore those easily.</p><p></p><p>I hope this helps others out there. I probably won't have time to tweak these for anyone, so just take these and run with them if changes are needed. I just ask that you post your changes if they help.</p><p></p><p>I have my series setup as follows:</p><p></p><p>Series.Name\*S01*\blah.s01e01.avi</p><p>Series.Name\*S1*\blah.s01X01.avi</p><p>Series.Name\*S10*\blah.s10.e01.avi</p><p>Series.Name\*Season 01*\blah.e01.avi</p><p>Series.Name\*Season 1*\blah.101.avi</p><p>Series.Name\*S01*\blah.1x01.avi</p><p>Series.Name\*S01*\blah.part1.avi</p><p>Series.Name\*S01*\blah.01.avi</p><p> - and a ton more to boot</p><p></p><p> - Series.Name\EXTRAS\* will be ignored allowing you to place all extras into the series subfolder and not have it parsed.</p><p> - Episode Titles will not be parsed. There are other ones here for people that rename their episodes and have titles.</p><p></p><p><strong>Regex:</strong></p><p>These are not the most efficient, but I did it this way to give priority to the higher regex's that i can trust better. I could probably move these all into 1, but I don't care enough to. I would enable each of these 7 in a row as ordered here and uncheck any others.</p><p></p><p>[code]</p><p>^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}(?:e7)?.*?(?:(?:[Ss]\d{1,2}[Ee]p?(?<episode>\d{1,3})(?:\-[Ee]?(?<episode2>\d{1,3}))?)|\d{1,2}[Xx](?<episode>\d{1,3})).*\.(?<ext>\w{3,4})$</p><p></p><p>^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}(?:e7)?.*?(?:[Ee]p?(?<episode>\d{1,2})(?:\-[Ee]?(?<episode2>\d{1,2}))?).*\.(?<ext>\w{3,4})$</p><p></p><p>^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}(?<episode>\d{2})(?:\-(?<episode2>\d{2}))?[^\d].*\.(?<ext>\w{3,4})$</p><p></p><p>^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}(?:e7)?.*(?:\d{1,2}(?<episode>\d{2})(?:\-(?<episode2>\d{2}))?).*\.(?<ext>\w{3,4})$</p><p></p><p>^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}.*?(?:(?i:part|episode)\.?\s?(?<episode>\d\d?)(?:\-(?<episode2>\d\d?))?).*\.(?<ext>\w{3,4})$</p><p></p><p>^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}.*?(?<episode>(\d\d))(?:\-(?<episode2>(\d\d)))?.*?\.(?<ext>\w{3,4})$</p><p></p><p>^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}.*?(?<episode>(\d)).*?\.(?<ext>\w{3,4})$</p><p>[/code]</p></blockquote><p></p>
[QUOTE="pgjensen, post: 826582, member: 73843"] [B]Type: [/B] Parsing - Regex [B]Description:[/B] I download shows from all over the place and rarely rename them. This is perfect for people that are fine with leaving filenames as they originally were (I.e. to continue to share with torrents and only having to worry about directory structure changes). All "scene" naming conventions are supported here, and more added. I ignore any season numbers from the filenames themselves and grab the season from the 2nd directory. Sample files currently are not ignored since I use MKV/AVI ReSample to .srs files on them, but if they're in a Sample folder within the season folder the regex's could be setup to ignore those easily. I hope this helps others out there. I probably won't have time to tweak these for anyone, so just take these and run with them if changes are needed. I just ask that you post your changes if they help. I have my series setup as follows: Series.Name\*S01*\blah.s01e01.avi Series.Name\*S1*\blah.s01X01.avi Series.Name\*S10*\blah.s10.e01.avi Series.Name\*Season 01*\blah.e01.avi Series.Name\*Season 1*\blah.101.avi Series.Name\*S01*\blah.1x01.avi Series.Name\*S01*\blah.part1.avi Series.Name\*S01*\blah.01.avi - and a ton more to boot - Series.Name\EXTRAS\* will be ignored allowing you to place all extras into the series subfolder and not have it parsed. - Episode Titles will not be parsed. There are other ones here for people that rename their episodes and have titles. [B]Regex:[/B] These are not the most efficient, but I did it this way to give priority to the higher regex's that i can trust better. I could probably move these all into 1, but I don't care enough to. I would enable each of these 7 in a row as ordered here and uncheck any others. [code] ^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}(?:e7)?.*?(?:(?:[Ss]\d{1,2}[Ee]p?(?<episode>\d{1,3})(?:\-[Ee]?(?<episode2>\d{1,3}))?)|\d{1,2}[Xx](?<episode>\d{1,3})).*\.(?<ext>\w{3,4})$ ^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}(?:e7)?.*?(?:[Ee]p?(?<episode>\d{1,2})(?:\-[Ee]?(?<episode2>\d{1,2}))?).*\.(?<ext>\w{3,4})$ ^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}(?<episode>\d{2})(?:\-(?<episode2>\d{2}))?[^\d].*\.(?<ext>\w{3,4})$ ^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}(?:e7)?.*(?:\d{1,2}(?<episode>\d{2})(?:\-(?<episode2>\d{2}))?).*\.(?<ext>\w{3,4})$ ^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}.*?(?:(?i:part|episode)\.?\s?(?<episode>\d\d?)(?:\-(?<episode2>\d\d?))?).*\.(?<ext>\w{3,4})$ ^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}.*?(?<episode>(\d\d))(?:\-(?<episode2>(\d\d)))?.*?\.(?<ext>\w{3,4})$ ^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}.*?(?<episode>(\d)).*?\.(?<ext>\w{3,4})$ [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Expressions/Rules exchange
Contact us
RSS
Top
Bottom