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
Products
TV-Server
Tweaking DVB EPG
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="hurley" data-source="post: 1140284" data-attributes="member: 151395"><p>Hi [USER=97516]@Vasilich[/USER] thanks for your feedback.</p><p>I disabled the Help and Regex Guide tabs in this release because I haven't written the documentation yet and so they were just empty placeholders, but I will definitely add them back for official release version.</p><p></p><p>I think I've had my head buried in the code so long I take for granted how to use it so it's good to remind me that it needs a user guide.</p><p></p><p>Internally the plugin uses Regex matching to select a part of a program's title to remove or replace.</p><p>If your EPG guide data is of good quality, the plugin may not be very useful but if your guide has spam or variable or inconsistent program naming, <em>cleaning</em> those parts can improve scheduling reliability and file naming of recordings.</p><p></p><p>For example in Australia the worst of the spam we get looks like:</p><p></p><p>"Friends (Includes: Sneak Peak Reno Rumble at 8:29 PM)"</p><p></p><p>So I want to match and remove the part starting from "(Includes..blah blah.." [this spam often changes with each EPG update]</p><p></p><p>The regex pattern which works in this case is: "<strong>\(Inc.*\)?</strong>"</p><p>The backslashes escape the parenthesis because these are special characters in regex.</p><p>The <strong>.*</strong> basically matches any text and the question mark at the end means the closing parenthesis is optional.</p><p>(Sometimes the spam is so long it doesn't even fit in the length allowed for a program title)</p><p></p><p>Some users in Finland have reported that networks append classification ratings to the end of program titles like:</p><p></p><p>"Emmerdale (7)" or "Emmerdale (S)"</p><p></p><p>but these classifications can be different for each episode of the same program which makes scheduling difficult.</p><p></p><p>This regex pattern can remove the rating from titles: "<strong>\s\((S|7|12|16|18)\)$</strong>"</p><p>It means a space <strong>\s</strong> followed by any of the characters split by <strong>|</strong> between parenthesis and at the end of the line <strong>$</strong>.</p><p></p><p>Regex can be a real pain to work with but it's very powerful.</p><p>If you have any problematic guide data like above I recommend googling on regex usage and use the '<em>Filter tester'</em> to verify that your pattern works.</p><p>Enter the offending program title in the text box next to the <em>'Test'</em> button, create your filter, press test and the result will be shown in the text box below along with a '<em>Match/Failed</em>' label.</p><p></p><p>While the plugin configuration is open no changes to filters are saved so you can safely mess around testing what works and what doesn't.</p><p>You can also disable any particular filter with the first checkbox.</p><p></p><p>For simple cases you can switch to '<em>wildcard</em>' mode using the option: '<em>Use simple filters instead of regex</em>'</p><p></p><p>----------------------------------------------------------------------------------------------------------------------------------</p><p></p><p>As a basic test of the plugins functionality you could pick a series program you're not going to ever record and create a crude filter for it.</p><p>For example:</p><p></p><p><em>Regex Expression:</em> "Home Shopping" <em>Replace with:</em> "Home Shopping TEST"</p><p></p><p>Select the channels this show is on or 'ALL' channels and update the EPG for that channel...</p><p>You should see the modified program titles in the TV Guide and also entries in the '<em>Epg Cleaner</em>' log if Logging is enabled.</p><p></p><p>One other thing I have forgotten to mention. The filters are processed in sequence so it is possible to run 2 or more filters on the same program name if it's too difficult to achieve the result with a single regex pattern.</p><p></p><p>Here are some regex reference pages I quickly googled:</p><p></p><p><a href="http://www.zytrax.com/tech/web/regex.htm" target="_blank">http://www.zytrax.com/tech/web/regex.htm</a></p><p><a href="https://msdn.microsoft.com/en-us/library/az24scfc%28v=vs.110%29.aspx" target="_blank">https://msdn.microsoft.com/en-us/library/az24scfc(v=vs.110).aspx</a></p><p><a href="http://www.rexegg.com/regex-quickstart.html" target="_blank">http://www.rexegg.com/regex-quickstart.html</a></p><p><a href="https://www.icewarp.com/support/online_help/203030104.htm" target="_blank">https://www.icewarp.com/support/online_help/203030104.htm</a></p><p></p><p>Thanks again, hurley <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="hurley, post: 1140284, member: 151395"] Hi [USER=97516]@Vasilich[/USER] thanks for your feedback. I disabled the Help and Regex Guide tabs in this release because I haven't written the documentation yet and so they were just empty placeholders, but I will definitely add them back for official release version. I think I've had my head buried in the code so long I take for granted how to use it so it's good to remind me that it needs a user guide. Internally the plugin uses Regex matching to select a part of a program's title to remove or replace. If your EPG guide data is of good quality, the plugin may not be very useful but if your guide has spam or variable or inconsistent program naming, [I]cleaning[/I] those parts can improve scheduling reliability and file naming of recordings. For example in Australia the worst of the spam we get looks like: "Friends (Includes: Sneak Peak Reno Rumble at 8:29 PM)" So I want to match and remove the part starting from "(Includes..blah blah.." [this spam often changes with each EPG update] The regex pattern which works in this case is: "[B]\(Inc.*\)?[/B]" The backslashes escape the parenthesis because these are special characters in regex. The [B].*[/B] basically matches any text and the question mark at the end means the closing parenthesis is optional. (Sometimes the spam is so long it doesn't even fit in the length allowed for a program title) Some users in Finland have reported that networks append classification ratings to the end of program titles like: "Emmerdale (7)" or "Emmerdale (S)" but these classifications can be different for each episode of the same program which makes scheduling difficult. This regex pattern can remove the rating from titles: "[B]\s\((S|7|12|16|18)\)$[/B]" It means a space [B]\s[/B] followed by any of the characters split by [B]|[/B] between parenthesis and at the end of the line [B]$[/B]. Regex can be a real pain to work with but it's very powerful. If you have any problematic guide data like above I recommend googling on regex usage and use the '[I]Filter tester'[/I] to verify that your pattern works. Enter the offending program title in the text box next to the [I]'Test'[/I] button, create your filter, press test and the result will be shown in the text box below along with a '[I]Match/Failed[/I]' label. While the plugin configuration is open no changes to filters are saved so you can safely mess around testing what works and what doesn't. You can also disable any particular filter with the first checkbox. For simple cases you can switch to '[I]wildcard[/I]' mode using the option: '[I]Use simple filters instead of regex[/I]' ---------------------------------------------------------------------------------------------------------------------------------- As a basic test of the plugins functionality you could pick a series program you're not going to ever record and create a crude filter for it. For example: [I]Regex Expression:[/I] "Home Shopping" [I]Replace with:[/I] "Home Shopping TEST" Select the channels this show is on or 'ALL' channels and update the EPG for that channel... You should see the modified program titles in the TV Guide and also entries in the '[I]Epg Cleaner[/I]' log if Logging is enabled. One other thing I have forgotten to mention. The filters are processed in sequence so it is possible to run 2 or more filters on the same program name if it's too difficult to achieve the result with a single regex pattern. Here are some regex reference pages I quickly googled: [URL]http://www.zytrax.com/tech/web/regex.htm[/URL] [URL='https://msdn.microsoft.com/en-us/library/az24scfc%28v=vs.110%29.aspx']https://msdn.microsoft.com/en-us/library/az24scfc(v=vs.110).aspx[/URL] [URL]http://www.rexegg.com/regex-quickstart.html[/URL] [URL]https://www.icewarp.com/support/online_help/203030104.htm[/URL] Thanks again, hurley :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Products
TV-Server
Tweaking DVB EPG
Contact us
RSS
Top
Bottom