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
Support
Electronic Program Guide
WebEPG
Episode numbers parsing examples do not work as expected
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="Evzen" data-source="post: 582917" data-attributes="member: 102172"><p>Hi, I'm new here so please forgive me if I am just missing something...</p><p></p><p>Just installed MP 1.1 RC1 (fresh install) and started playing a bit more with WebEPG.</p><p>Using the (fixed) Czech grabber for tv.sms.cz (<a href="https://forum.team-mediaportal.com/general-development-no-feature-request-here-48/webepg-cookies-53697/" target="_blank">https://forum.team-mediaportal.com/general-development-no-feature-request-here-48/webepg-cookies-53697/</a>), which contains the very same search code as the example in the <a href="http://wiki.team-mediaportal.com/MediaPortal_WebEPG_Grabber" target="_blank">MediaPortal_WebEPG_Grabber</a>:</p><p>[CODE]<Search match="\([0-9]{1,3}[,][0-9]{0,3}\)" field="#EPISODE" remove="true" /></p><p><Search match="\([0-9]{1,3}\)" field="#EPISODE" remove="true" /></p><p><Search match="\([0-9]{1,3}[/][0-9]{0,3}\)" field="#EPISODE" remove="true" />[/CODE]</p><p></p><p>Apparently, using these the WebEPG is supposed to extract the <strong>entire string</strong>, i.e. <strong>including the brackets/comma/slash</strong>, right?</p><p>But it simply doesn't... <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite5" alt=":confused:" title="Confused :confused:" loading="lazy" data-shortname=":confused:" /></p><p>What ends up written in the database (or tvguide.xml file) is <strong>only the first number</strong>, i.e. if the episode string is "14/26" or "(123,124)", only the "14" or "123" gets extracted... <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite5" alt=":confused:" title="Confused :confused:" loading="lazy" data-shortname=":confused:" /></p><p></p><p>Done some tests and after changing the regexp to e.g. {1,1}, episode strings like the examples above are left intact... which is correct and seems like the problem is in the <strong>further processing of the extracted string before exporting to DB or XML</strong>.</p><p></p><p>Now I don't know if I am doing something wrong (but what?! there is nothing I could screw up...), or if it is a pretty nasty bug in the WebEPG...</p><p>But how comes nobody else would be bothered by such obvious bug? I'm totally confused... <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite5" alt=":confused:" title="Confused :confused:" loading="lazy" data-shortname=":confused:" /></p></blockquote><p></p>
[QUOTE="Evzen, post: 582917, member: 102172"] Hi, I'm new here so please forgive me if I am just missing something... Just installed MP 1.1 RC1 (fresh install) and started playing a bit more with WebEPG. Using the (fixed) Czech grabber for tv.sms.cz ([url]https://forum.team-mediaportal.com/general-development-no-feature-request-here-48/webepg-cookies-53697/[/url]), which contains the very same search code as the example in the [URL="http://wiki.team-mediaportal.com/MediaPortal_WebEPG_Grabber"]MediaPortal_WebEPG_Grabber[/URL]: [CODE]<Search match="\([0-9]{1,3}[,][0-9]{0,3}\)" field="#EPISODE" remove="true" /> <Search match="\([0-9]{1,3}\)" field="#EPISODE" remove="true" /> <Search match="\([0-9]{1,3}[/][0-9]{0,3}\)" field="#EPISODE" remove="true" />[/CODE] Apparently, using these the WebEPG is supposed to extract the [B]entire string[/B], i.e. [B]including the brackets/comma/slash[/B], right? But it simply doesn't... :S What ends up written in the database (or tvguide.xml file) is [B]only the first number[/B], i.e. if the episode string is "14/26" or "(123,124)", only the "14" or "123" gets extracted... :S Done some tests and after changing the regexp to e.g. {1,1}, episode strings like the examples above are left intact... which is correct and seems like the problem is in the [B]further processing of the extracted string before exporting to DB or XML[/B]. Now I don't know if I am doing something wrong (but what?! there is nothing I could screw up...), or if it is a pretty nasty bug in the WebEPG... But how comes nobody else would be bothered by such obvious bug? I'm totally confused... :S [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Electronic Program Guide
WebEPG
Episode numbers parsing examples do not work as expected
Contact us
RSS
Top
Bottom