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
WebEPG pagegrab delay not working correctly
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="benjerry" data-source="post: 628860" data-attributes="member: 57133"><p>About double delay bug:</p><p></p><p>first time is in HTMLPage.LoadPage and second time in case of internal grabbing method it's in HTTPTransaction.Transaction </p><p></p><p>HTMLPage.cs old:</p><p></p><p> // Delay before getting page</p><p> if (page.Delay > 0)</p><p> Thread.Sleep(page.Delay);</p><p></p><p> bool success;</p><p></p><p> if (page.External)</p><p> {</p><p> success = GetExternal(page);</p><p> }</p><p> else</p><p> {</p><p> success = GetInternal(page);</p><p> }</p><p></p><p>should be okay to move to external only, because delay already handled in GetInternal->Page.HTTPGet(page)->Transaction(request)</p><p></p><p>HTMLPage.cs new:</p><p></p><p> bool success;</p><p></p><p> if (page.External)</p><p> {</p><p> // Delay before getting page</p><p> if (page.Delay > 0)</p><p> Thread.Sleep(page.Delay);</p><p></p><p> success = GetExternal(page);</p><p> }</p><p> else</p><p> {</p><p> success = GetInternal(page);</p><p> }</p><p></p><p>or move the delay to the private function GetExternal.</p></blockquote><p></p>
[QUOTE="benjerry, post: 628860, member: 57133"] About double delay bug: first time is in HTMLPage.LoadPage and second time in case of internal grabbing method it's in HTTPTransaction.Transaction HTMLPage.cs old: // Delay before getting page if (page.Delay > 0) Thread.Sleep(page.Delay); bool success; if (page.External) { success = GetExternal(page); } else { success = GetInternal(page); } should be okay to move to external only, because delay already handled in GetInternal->Page.HTTPGet(page)->Transaction(request) HTMLPage.cs new: bool success; if (page.External) { // Delay before getting page if (page.Delay > 0) Thread.Sleep(page.Delay); success = GetExternal(page); } else { success = GetInternal(page); } or move the delay to the private function GetExternal. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Electronic Program Guide
WebEPG
WebEPG pagegrab delay not working correctly
Contact us
RSS
Top
Bottom