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="vasudaprime" data-source="post: 369849" data-attributes="member: 87990"><p>Hi all,</p><p></p><p>My folder structure is as follows:</p><p></p><p>Clannad\Season 01 - Original story\1x01 - To the slope where the sakura petals fall.mkv</p><p>Clannad\Season 01 - Original story\1x02 - The first step.mkv</p><p>...</p><p>Clannad\Season 02 - After story\2x01 - Farewell to the end of summer.mkv</p><p>Clannad\Season 02 - After story\2x02 - Searching for false love.mkv</p><p></p><p></p><p>Basically I've split the episodes into separate season folders, and I included the season names in the folder names. I thought regex like this would work:</p><p></p><p>^(<series>)\\(.*?)\\(<season>)x(<episode>) - (<title>)\.(<ext>)$</p><p></p><p></p><p>but it doesn't seem to. Could someone please tell me where I'm going wrong? Thanks <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" />.</p><p></p><p>----[edit]----</p><p></p><p>Okay, it turns out I should've just tried editing one of the Regex statements already there <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" /> . In case anyone else needs this, here's what I used:</p><p></p><p>^(?<series>[^\\$]+)\\(.*?[^\\$])\\[^\\$]*?(?:s(?<season>[0-1]?\d)ep?(?<episode>\d\d)|(?<season>(?:[0-1]\d|(?<!\d)\d))x?(?<episode>\d\d))(?!\d)(?:[ .-]?(?:s\k<season>e?(?<episode2>\d{2}(?!\d))|\k<season>x?(?<episode2>\d{2}(?!\d))|(?<episode2>\d\d(?!\d))|E(?<episode2>\d\d))|)[ -.]*(?<title>(?!.*sample)[^\\]*?[^\\]*?)\.(?<ext>[^.]*)$</p><p></p><p>I just added: \\(.*?[^\\$]) into one of the default statements.</p></blockquote><p></p>
[QUOTE="vasudaprime, post: 369849, member: 87990"] Hi all, My folder structure is as follows: Clannad\Season 01 - Original story\1x01 - To the slope where the sakura petals fall.mkv Clannad\Season 01 - Original story\1x02 - The first step.mkv ... Clannad\Season 02 - After story\2x01 - Farewell to the end of summer.mkv Clannad\Season 02 - After story\2x02 - Searching for false love.mkv Basically I've split the episodes into separate season folders, and I included the season names in the folder names. I thought regex like this would work: ^(<series>)\\(.*?)\\(<season>)x(<episode>) - (<title>)\.(<ext>)$ but it doesn't seem to. Could someone please tell me where I'm going wrong? Thanks :). ----[edit]---- Okay, it turns out I should've just tried editing one of the Regex statements already there :p . In case anyone else needs this, here's what I used: ^(?<series>[^\\$]+)\\(.*?[^\\$])\\[^\\$]*?(?:s(?<season>[0-1]?\d)ep?(?<episode>\d\d)|(?<season>(?:[0-1]\d|(?<!\d)\d))x?(?<episode>\d\d))(?!\d)(?:[ .-]?(?:s\k<season>e?(?<episode2>\d{2}(?!\d))|\k<season>x?(?<episode2>\d{2}(?!\d))|(?<episode2>\d\d(?!\d))|E(?<episode2>\d\d))|)[ -.]*(?<title>(?!.*sample)[^\\]*?[^\\]*?)\.(?<ext>[^.]*)$ I just added: \\(.*?[^\\$]) into one of the default statements. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Expressions/Rules requests
Contact us
RSS
Top
Bottom