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="MacGyver2k" data-source="post: 512989" data-attributes="member: 15878"><p>i have problems with some parse expressions.</p><p></p><p>my file structure looks like this:</p><p>\The Sopranos - 720p\Season 04\S04E01 - For All Debts Public and Private.mkv</p><p>and for some files like this</p><p>\The Joy of Painting\S15E01 - Splendor of Winter.ts</p><p></p><p>i was using simple expression parsing until today, but since i have got some "double"-episodes i wanted to show them up as seperate episodes in the list.</p><p>so i made these three parsing rules:</p><p></p><p>[code]</p><p>(?<series>[^\\$]*)[\\]Season [0-9]*[\\]S(?<season>[0-9]*)E(?<episode>[0-9]*)&(?<episode2>[0-9]*) - (?<title>(?![^\\]*?sample)[^$]*?)\.(?<ext>[^.]*)</p><p>(?<series>[^\\$]*)[\\]Season [0-9]*[\\]S(?<season>[0-9]*)E(?<episode>[0-9]*) - (?<title>(?![^\\]*?sample)[^$]*?)\.(?<ext>[^.]*)</p><p>(?<series>[^\\$]*)[\\]S(?<season>[0-9]*)E(?<episode>[0-9]*) - (?<title>(?![^\\]*?sample)[^$]*?)\.(?<ext>[^.]*)[/code]</p><p></p><p>i mostlyworks, but episodes with a "." in the title are messed up ( like "S03E01 - Mr. Ruggerio's Neighborhood.mkv" - the title is "mr." and "Ruggerio's Neighborhood.mkv" is used as <ext>".</p><p>and strangely some episodes show as <episodeindex2> instead of nothing the full file path.</p><p></p><p>i am sure that it is possible to reduce my three lines to just one, but since i wasn't able to find any documentation i need some help.</p><p>i wasn't able to fully understand the syntax, is there any quick introduction for regexp so i can try it on my own ?</p><p></p><p></p><p>:edit:</p><p>okay, is was able to help myself.</p><p></p><p>fixed the "." problem with ^ and $and reduced it to just one line.</p><p>[code]</p><p>^(?<series>[^\\$]*)[\\](Season [0-9]*[\\])?S(?<season>[0-9]*)E(?<episode>[0-9]+)(&(?<episode2>[0-9]+))? - (?<title>(?![^\\]*?sample)[^$]*?)\.(?<ext>[^.]*)$[/code]</p><p></p><p>but i still got the problem that right after the first double episode ( S01E01E02 ) is parsed all other episodes get an entry in <episodeindex2> with their full file-path. i assume it's an bug, or is there any way i can avoid that ?</p><p>i doesn't seem to cause any problems with the listing of the files.</p><p></p><p>thanks</p></blockquote><p></p>
[QUOTE="MacGyver2k, post: 512989, member: 15878"] i have problems with some parse expressions. my file structure looks like this: \The Sopranos - 720p\Season 04\S04E01 - For All Debts Public and Private.mkv and for some files like this \The Joy of Painting\S15E01 - Splendor of Winter.ts i was using simple expression parsing until today, but since i have got some "double"-episodes i wanted to show them up as seperate episodes in the list. so i made these three parsing rules: [code] (?<series>[^\\$]*)[\\]Season [0-9]*[\\]S(?<season>[0-9]*)E(?<episode>[0-9]*)&(?<episode2>[0-9]*) - (?<title>(?![^\\]*?sample)[^$]*?)\.(?<ext>[^.]*) (?<series>[^\\$]*)[\\]Season [0-9]*[\\]S(?<season>[0-9]*)E(?<episode>[0-9]*) - (?<title>(?![^\\]*?sample)[^$]*?)\.(?<ext>[^.]*) (?<series>[^\\$]*)[\\]S(?<season>[0-9]*)E(?<episode>[0-9]*) - (?<title>(?![^\\]*?sample)[^$]*?)\.(?<ext>[^.]*)[/code] i mostlyworks, but episodes with a "." in the title are messed up ( like "S03E01 - Mr. Ruggerio's Neighborhood.mkv" - the title is "mr." and "Ruggerio's Neighborhood.mkv" is used as <ext>". and strangely some episodes show as <episodeindex2> instead of nothing the full file path. i am sure that it is possible to reduce my three lines to just one, but since i wasn't able to find any documentation i need some help. i wasn't able to fully understand the syntax, is there any quick introduction for regexp so i can try it on my own ? :edit: okay, is was able to help myself. fixed the "." problem with ^ and $and reduced it to just one line. [code] ^(?<series>[^\\$]*)[\\](Season [0-9]*[\\])?S(?<season>[0-9]*)E(?<episode>[0-9]+)(&(?<episode2>[0-9]+))? - (?<title>(?![^\\]*?sample)[^$]*?)\.(?<ext>[^.]*)$[/code] but i still got the problem that right after the first double episode ( S01E01E02 ) is parsed all other episodes get an entry in <episodeindex2> with their full file-path. i assume it's an bug, or is there any way i can avoid that ? i doesn't seem to cause any problems with the listing of the files. thanks [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Expressions/Rules requests
Contact us
RSS
Top
Bottom