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
Default expressions/double episodes
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="gamejester" data-source="post: 173875" data-attributes="member: 50634"><p>Can anyone help me to change a regular expression to cope with my nested dir structure.</p><p>I store episodes in this format</p><p></p><p>M:\series\Lost\Season_1\Lost - 3x01 - A Tale of two cities.avi</p><p></p><p>Then point he import path to </p><p>M:\series</p><p></p><p>None of the inbuilt regualr expressions work with this nesting so I have been using a simple expression</p><p>I use this one: </p><p><series> - <season>x<episode> - <title>.<ext></p><p></p><p>but I now want to support double episodes.</p><p></p><p>This expression is almost there as far as the file name is conerned, could my nested dir be stopping it from working?</p><p></p><p>^.*?\\?(?<series>[^\\$]+?)(?:s(?<season>[0-1]?\d)e(?<episode>\d\d)|(?<season>(?:[0-1]\d|(?<!\d)\d))x?(?<episode>\d\d))(?!\d)(?:[ .-]?(??<episode2>\d\d(?!\d))|E(?<episode2>\d\d)|(?: \d\d|(?<!\d)\d)x?(?<episode2>\d{2}(?!\d)))|)[ -.]*(?<title>[^\\]*?(?<HR>HR\.)?[^\\]*?)\.(?<ext>[^.]*)$</p><p></p><p>any help with this would be great.</p></blockquote><p></p>
[QUOTE="gamejester, post: 173875, member: 50634"] Can anyone help me to change a regular expression to cope with my nested dir structure. I store episodes in this format M:\series\Lost\Season_1\Lost - 3x01 - A Tale of two cities.avi Then point he import path to M:\series None of the inbuilt regualr expressions work with this nesting so I have been using a simple expression I use this one: <series> - <season>x<episode> - <title>.<ext> but I now want to support double episodes. This expression is almost there as far as the file name is conerned, could my nested dir be stopping it from working? ^.*?\\?(?<series>[^\\$]+?)(?:s(?<season>[0-1]?\d)e(?<episode>\d\d)|(?<season>(?:[0-1]\d|(?<!\d)\d))x?(?<episode>\d\d))(?!\d)(?:[ .-]?(??<episode2>\d\d(?!\d))|E(?<episode2>\d\d)|(?: \d\d|(?<!\d)\d)x?(?<episode2>\d{2}(?!\d)))|)[ -.]*(?<title>[^\\]*?(?<HR>HR\.)?[^\\]*?)\.(?<ext>[^.]*)$ any help with this would be great. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Default expressions/double episodes
Contact us
RSS
Top
Bottom