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
Development
General Development (no feature request here!)
WebEPG with cookies
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="Vasek" data-source="post: 368697" data-attributes="member: 27707"><p>Hi,</p><p>because no good site with all czech tv programs was grabbable with WebEPG, I added small functionality: now COOKIES can be part of HTTPRequest of grabber (Site tag) the same way as UTL and POST attribute. It can contain the same replacable tags (like [ID] etc.). Such a way many new sites can be used for WebEPG.</p><p></p><p>Cookies atribute of Site tag can contain more cookies separated by semicolon ";". Each cookie is composed by its name and its value in form "cookieName=cookieValue". Other than main domain are not supported at the moment. See the following example:</p><p></p><p><Site url="http://tv.sms.cz/index.php?P_id_kategorie=56456&amp;P_soubor=%2Ftelevize%2Findex.php%3Fdatum%3D[YYYY]-[MM]-[DD]%26zobrazeni%3D" post="" cookies="P_cookies_siroke_zobrazeni=false;P_cookies_televize_stanice=[ID]" external="false" encoding="windows-1250" /></p><p></p><p>Cookies in Site tag are supported only for external="false".</p><p></p><p>Only small changes in code were needed, influenced source files are attached. Performed change works for MP from at least version 0.2.3 to 1.0.0 (tested), only utils.dll must be compiled separately for 0.2.x series and 1.0.x series. Influenced source files for current SVN version, compiled Utils.dll needed for new feature for MP 0.2.3 and MP 1.0.0, and two examples are attached.</p><p></p><p>Attached files also contain the bug fix <a href="https://forum.team-mediaportal.com/general-development-no-feature-request-here-48/bug-fix-non-default-encoding-webepg-sublink-49583/" target="_blank">https://forum.team-mediaportal.com/general-development-no-feature-request-here-48/bug-fix-non-default-encoding-webepg-sublink-49583/</a> not yet merged to current SVN.</p><p></p><p>For using this new feature you can just copy Utils.dll of appropriate MP version to your main MP directory. Original Utils.dll should be backuped for safety purposes. MP should not be running during this operation (otherwise file is in use and cannot be replaced / renamed).</p><p></p><p>I thing this small improvement copies very exactly the principles of MP and adds much general improvement. It does not touch any other functionality of MP. <em>I ask developers to add this new functionality to official versions.</em></p><p></p><p>Have a good time with MP!</p><p></p><p>Vasek</p></blockquote><p></p>
[QUOTE="Vasek, post: 368697, member: 27707"] Hi, because no good site with all czech tv programs was grabbable with WebEPG, I added small functionality: now COOKIES can be part of HTTPRequest of grabber (Site tag) the same way as UTL and POST attribute. It can contain the same replacable tags (like [ID] etc.). Such a way many new sites can be used for WebEPG. Cookies atribute of Site tag can contain more cookies separated by semicolon ";". Each cookie is composed by its name and its value in form "cookieName=cookieValue". Other than main domain are not supported at the moment. See the following example: <Site url="http://tv.sms.cz/index.php?P_id_kategorie=56456&P_soubor=%2Ftelevize%2Findex.php%3Fdatum%3D[YYYY]-[MM]-[DD]%26zobrazeni%3D" post="" cookies="P_cookies_siroke_zobrazeni=false;P_cookies_televize_stanice=[ID]" external="false" encoding="windows-1250" /> Cookies in Site tag are supported only for external="false". Only small changes in code were needed, influenced source files are attached. Performed change works for MP from at least version 0.2.3 to 1.0.0 (tested), only utils.dll must be compiled separately for 0.2.x series and 1.0.x series. Influenced source files for current SVN version, compiled Utils.dll needed for new feature for MP 0.2.3 and MP 1.0.0, and two examples are attached. Attached files also contain the bug fix [URL="https://forum.team-mediaportal.com/general-development-no-feature-request-here-48/bug-fix-non-default-encoding-webepg-sublink-49583/"]https://forum.team-mediaportal.com/general-development-no-feature-request-here-48/bug-fix-non-default-encoding-webepg-sublink-49583/[/URL] not yet merged to current SVN. For using this new feature you can just copy Utils.dll of appropriate MP version to your main MP directory. Original Utils.dll should be backuped for safety purposes. MP should not be running during this operation (otherwise file is in use and cannot be replaced / renamed). I thing this small improvement copies very exactly the principles of MP and adds much general improvement. It does not touch any other functionality of MP. [I]I ask developers to add this new functionality to official versions.[/I] Have a good time with MP! Vasek [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
WebEPG with cookies
Contact us
RSS
Top
Bottom