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
FAQ (Frequently Asked Questions) -- Read This First
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="Inker" data-source="post: 573705" data-attributes="member: 10541"><p>RoChess, thnx for doing this.</p><p></p><p>However, can I make a minor correction, you state:</p><p>"Then we need to create the solution, by going back to the 'Import' tab and clicking on the 'String Replacements' menu item, and then mark both the checkbox 'Enabled' as well as 'Run before matching'. That last one is important, because we need to do the string replacements before the 'Parsing Expressions' are processed."</p><p></p><p>However in the example you give it doesn't make any difference if you run the replacement before the matching, you don't need the replacement to run before the regex parser kicks in, because the parser isn't in the slightest concerned with you using existing series names, all it cares about is a certain pattern in the filename.</p><p></p><p>Just think of this ordering of steps and it should be clear:</p><p>1) FilenameScan by extension</p><p>2) String Replacements BEFORE matching</p><p>3) Regex Matching</p><p>4) For Each Field - String replacement AFTER Matching (checkbox not clicked)</p><p>5) Online processing - Only at this step do you need to have the correct series name, well in fact you don't as it will ask you and you can just type the new series here. So I'm not entirely sure about your example.</p><p></p><p>An example when String replacement before matching can be useful:</p><p>Filename: "Single Season Series - Episode 1.avi"</p><p>You can just add a replacement for "Episode " to "1x", but this one HAS to run before the regex, or you will not get a match.</p><p></p><p>Hope this clears it up.</p></blockquote><p></p>
[QUOTE="Inker, post: 573705, member: 10541"] RoChess, thnx for doing this. However, can I make a minor correction, you state: "Then we need to create the solution, by going back to the 'Import' tab and clicking on the 'String Replacements' menu item, and then mark both the checkbox 'Enabled' as well as 'Run before matching'. That last one is important, because we need to do the string replacements before the 'Parsing Expressions' are processed." However in the example you give it doesn't make any difference if you run the replacement before the matching, you don't need the replacement to run before the regex parser kicks in, because the parser isn't in the slightest concerned with you using existing series names, all it cares about is a certain pattern in the filename. Just think of this ordering of steps and it should be clear: 1) FilenameScan by extension 2) String Replacements BEFORE matching 3) Regex Matching 4) For Each Field - String replacement AFTER Matching (checkbox not clicked) 5) Online processing - Only at this step do you need to have the correct series name, well in fact you don't as it will ask you and you can just type the new series here. So I'm not entirely sure about your example. An example when String replacement before matching can be useful: Filename: "Single Season Series - Episode 1.avi" You can just add a replacement for "Episode " to "1x", but this one HAS to run before the regex, or you will not get a match. Hope this clears it up. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
FAQ (Frequently Asked Questions) -- Read This First
Contact us
RSS
Top
Bottom