Beiträge von aztoc

    Thanks for the contribution. The Addon earlier already hat its own HTTP-Client implementation and this has been removed in favor of the CURL implementation provided by Kodi. The drawback of this is that the control over the cookies is not in the Addon anymore which caused quite a bunch of login problems. If possible, I would prefer to keep the Kodi Implementation and fix the problems that still exist there. What problems were you having with versions after 0.1.16? Is it possible to fix them without having to use an own HTTP-Client?

    The main problem is the "ERROR: Open - Unhandled exception" that are present almost every time the epg update thread is launched. I think those errors are caused by the responses with status code 0 from zattoo. With C++ Request I can handle them easily by pausing the addon for 100ms before retrying to make the request. I think with Kodi CURL it's possible to handle them with a try/catch but I don't know what to catch.

    I can also handle responses with status code 403 and send again an session/hello request to renew the session.

    With your implementation if the session expire it will not be renewed until you restart the addon and if you use a raspberry pi you let it on 24/24h because it's not convenient to unplug it from the power and plug it in again to make it start.

    I have also noticed that in the cookies.dat of Kodi curl there is only the "beaker.session.id" session cookie but it's the "pzuid" cookie which keep the session really alive in zattoo.

    loadAppId() will also always fail after the first launch because Zattoo doesn't send the appToken if there is the "beaker.session.id" cookie in the request but Kodi curl alway send it.

    Habe die Version installiert. Zunächst schien alles zu funktionieren, allerdings nach einem Reboot begann Kodi permanent neuzustarten, auch das Löschen der cookies.dat hat mich nicht aus der Schleife befördert. Nachdem ich mir nicht mehr zu helfen wusste habe ich einfach die so-Datei aus dem Addon übber ssh gelöscht danach hat er das Addon endlich deaktiviert.
    Bin nun zurück auf die 1.16 gegangen die hervorragend läuft.

    I had the same problem with one of my raspberry and there wasn't any errors in the logs concerning the addon. I have replaced epg.db and tv.db with those from a kodi beta1 install with the zattoo addon installed and since then it work just fine with no crash. So I think it should be a bug in Kodi...

    Kodi crash with this error every 1-2h on 0.1.11, it restart and the tv channels are present with the epg. So it's not a big deal because it crash when you don't use it (TV off) and when your turn on the TV the channels are present and you can watch them. But it still crash...

    Code
    ERROR: Open - Unhandled exception
    04:37:55 209886.296875 T:1548665760   ERROR: Open - Error opening http://zattoo.com/zapi/v2/cached/program/power_guide/654152e4667d8d2dcd6a30006fb1e04e?end=1473892200&start=1473874200&format=json|acceptencoding=gzip
    04:38:05 209896.328125 T:1548665760  NOTICE: AddOnLog: Zattoo PVR Client: Loading epg faild for channel '24-TV' from 1473907074 to 1474079874
    04:38:05 209896.328125 T:1548665760   ERROR: PVR - GetEPGForChannel - addon 'Zattoo PVR Add-on:connected' returned an error: server error
    04:38:05 209896.328125 T:1548665760   ERROR: PVR - GetEPGForChannel - cannot get EPG for channel '24-TV' from client '15870792': server error
    04:38:05 209896.328125 T:1548665760   ERROR: EPG - Update - failed to update table '24-TV'
    04:38:05 209896.468750 T:1617322912   ERROR: Open - Unhandled exception
    04:38:05 209896.468750 T:1617322912   ERROR: Open - Error opening http://zattoo.com/zapi/playlist|acceptencoding=gzip


    For the Zattoo session I haven't any other Zattoo addons installed... In fact I had the same problem this morning with my two raspberry and one of them has only the pvr.zattoo addon installed and nothing else.


    Code
    04:39:59 210010.921875 T:1874850720  NOTICE: AddOnLog: Zattoo PVR Client: Initialize session faild. Try to get a new app token.
    04:39:59 210011.218750 T:1874850720   ERROR: AddOnLog: Zattoo PVR Client: Could not load App token.

    From this [definition='1','0']log[/definition], on one of the raspberry the TV section disappeared and on the other the channels where still present but with no epg and only had logs with "Could not load App token." ...

    Hello,

    I have some crashlogs for the devs (I'm using v. 0.1.11) :

    - The first kodi_crashlog_20160916043934.log is the one who make kodi crash every 1-2h, this is due to the fact that the case where a channel has no epg is unhandled. (I'm using Zattoo Switzerland)

    [xattach=13732]Channel whitout epg screen[/xattach]


    - The second kodi_crashlog_20160916043950.log and third kodi_crashlog_20160916044030.log are the one who corrupted the cookies.dat file after two days of use.

    Thanks for your support