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="GazpachoKing" data-source="post: 175086" data-attributes="member: 18374"><p>This is my first time using regex, and this method is a little bit hacked so I am sure there is a better way but here is how I parse Bleach:</p><p>[CODE](?<season>1).*(?<series>bleach)[\s-_]{1,3}(?<episode>\d+)(?:-(?<episode2>\d+))?.*\.(?<ext>[^.]*)[/CODE]</p><p>This should cover both of your formats above including double episodes as long as they are in the format 52-53.</p><p>The season has to be 1 for all the eps for absolute numbering to work, so I have the expression match any 1 in the filename before the episode name. This means you have to have the episodes in a folder that contains the number 1.</p><p>i.e. Bleach\Season 1\[DB]_Bleach_52-53_[069BE2EB].avi</p><p>Also, since it's sort of a loose filter, I hard coded it to match only bleach and moved it to the top of my expressions list. You could probably just copy it for all similarly formated anime and just change "Bleach" to whatever in the regex.</p></blockquote><p></p>
[QUOTE="GazpachoKing, post: 175086, member: 18374"] This is my first time using regex, and this method is a little bit hacked so I am sure there is a better way but here is how I parse Bleach: [CODE](?<season>1).*(?<series>bleach)[\s-_]{1,3}(?<episode>\d+)(?:-(?<episode2>\d+))?.*\.(?<ext>[^.]*)[/CODE] This should cover both of your formats above including double episodes as long as they are in the format 52-53. The season has to be 1 for all the eps for absolute numbering to work, so I have the expression match any 1 in the filename before the episode name. This means you have to have the episodes in a folder that contains the number 1. i.e. Bleach\Season 1\[DB]_Bleach_52-53_[069BE2EB].avi Also, since it's sort of a loose filter, I hard coded it to match only bleach and moved it to the top of my expressions list. You could probably just copy it for all similarly formated anime and just change "Bleach" to whatever in the regex. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Expressions/Rules requests
Contact us
RSS
Top
Bottom