kodi-czsk / plugin.video.dmd-czech.stream

GNU General Public License v2.0
1 stars 6 forks source link

Nejde vylistovat/prehravat #12

Closed starenka closed 7 years ago

starenka commented 7 years ago
02:19:41 3201582.000000 T:1546646592  NOTICE: -->Python Interpreter Initialized<--
02:19:44 3201584.750000 T:1472197696  NOTICE: Chyba zpracovani statistiky
02:19:44 3201584.750000 T:1546646592   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'urllib2.HTTPError'>
                                            Error Contents: HTTP Error 400: BAD REQUEST
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py", line 381, in <module>
                                                listShows(url)
                                              File "/storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py", line 151, in listShows
                                                data = getJsonDataFromUrl(url)
                                              File "/storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py", line 127, in getJsonDataFromUrl
                                                response = urllib2.urlopen(req)
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 1
26, in urlopen
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 4
06, in open
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 5
19, in http_response
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 4
44, in error
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 3
78, in _call_chain
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 5
27, in http_error_default
                                            HTTPError: HTTP Error 400: BAD REQUEST
                                            -->End of Python script error report<--
02:19:45 3201585.250000 T:1472197696  NOTICE: Chyba načtení novinek
02:19:45 3201585.750000 T:1966833664   ERROR: GetDirectory - Error getting plugin://plugin.video.dmd-czech.stream/?mode=1&name=All%20shows&url=http%3a%2f%2fwww.stream.cz%2fAPI%2fca
talogue
02:19:45 3201585.750000 T:1966833664   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.dmd-czech.stream/?mode=1&name=All%20shows&url=http%3a%2f%2fwww.stream.cz%2fAPI%2fc
atalogue) failed
02:19:45 3201585.750000 T:1546646592  NOTICE: Thread BackgroundLoader start, auto delete: false
02:19:50 3201591.000000 T:1605366848   ERROR: Unable to find plugin
02:19:50 3201591.000000 T:1966833664   ERROR: GetDirectory - Error getting plugin://
02:19:50 3201591.000000 T:1966833664   ERROR: CGUIMediaWindow::GetDirectory(plugin://) failed
02:19:50 3201591.000000 T:1546646592  NOTICE: Thread BackgroundLoader start, auto delete: fals
kapitan-iglu commented 7 years ago

Je tato chyba opakovatelna?

Podla vsetkeho bol v tom case "vypadok internetu" - nepodarilo sa pripojit ani na server stream.cz ani na server so statistikami.

Mne osobne sa chyba "HTTP Error 400: BAD REQUEST" stala zatial len jeden krat par tyzdnov dozadu. Kym som si otvoril log subor tak uz vsetko fungovalo bez problemov a nebolo co ladit...

starenka commented 7 years ago

Jo, dela to tejden v kuse :) Kdyby nesel net dostanes timeout nebo to hodi fail na resolvovani hostname. Ta 400 sama o sobe rika, ze si dostal odpoved, ne?

kapitan-iglu commented 7 years ago

V snahe rychlo zareagovat som sa blbo vyjadril, sry. Zaroven ma zmiatla chyba so spracovanim statistik, ktore, ako teraz zistujem, nefunguju.

Nepozdava sa mi, ze tvoje vypisy v logu nie su take ako by som ocakaval. Neobsahuju debug vypisy z kodi ani doplnku typu "DEBUG: StartScript - calling plugin Stream TV Archiv('plugin://..." alebo "[Stream TV Archiv] ...".

Mas prepnuty log level v kodi na debug? Urcite pouzivas najnovsiu verziu doplnku 1.2.6? Mozes poskytnut vacsiu cast z log suboru (zacina s niecim takymto: "GetDirectory (plugin://plugin.video.dmd-czech.stream/)") ?

starenka commented 7 years ago

Znova sem stahnul cely cz/sk kodi repo (http://kodi-czsk.github.io/repository/repo/repository.kodi-czsk/repository.kodi-czsk-1.0.2.zip), znova ho nainstaloval, ukazovalo to, ze updatuje tenhle plugin (je v kodi repu posledni verze tohohle pluginu?). Kdyz kouknu na verzi pluginu, je to 1.2.6. Zapnul sem debug, vic relevatniho tam nevidim...

22:44:32 3275072.750000 T:1419768896  NOTICE: Thread JobWorker start, auto delete: true
22:44:34 3275074.500000 T:1494217792  NOTICE: Thread BackgroundLoader start, auto delete: false
22:44:34 3275074.500000 T:1525675072  NOTICE: Thread JobWorker start, auto delete: true
22:44:36 3275076.750000 T:1494217792  NOTICE: Thread BackgroundLoader start, auto delete: false
22:44:55 3275095.500000 T:1494217792  NOTICE: Previous line repeats 2 times.
22:44:55 3275095.500000 T:1494217792  NOTICE: Thread FileCache start, auto delete: false
22:44:58 3275098.000000 T:1546646592  NOTICE: Previous line repeats 2 times.
22:44:58 3275098.000000 T:1546646592  NOTICE: Thread BackgroundLoader start, auto delete: false
22:44:58 3275098.250000 T:1494217792  NOTICE: Thread FileCache start, auto delete: false
22:45:04 3275104.000000 T:1494217792  NOTICE: Thread BackgroundLoader start, auto delete: false
22:45:18 3275118.250000 T:1494217792  NOTICE: Thread FileCache start, auto delete: false
22:45:23 3275123.250000 T:1494217792  NOTICE: Thread JobWorker start, auto delete: true
22:45:28 3275128.000000 T:1826837568  NOTICE: Previous line repeats 1 times.
22:45:28 3275128.000000 T:1826837568  NOTICE: Thread BackgroundLoader start, auto delete: false
22:45:31 3275131.500000 T:1800401984  NOTICE: ['SOSAC Shutdown']
22:45:31 3275131.500000 T:1800401984 WARNING: CPythonInvoker(2, /storage/.kodi/addons/plugin.video.sosac.ph/service.py): the python script "/storage/.kodi/addons/plugin.video.sosac.ph/service.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon7xbmcgui14DialogProgressE
22:45:41 3275141.500000 T:1800401984  NOTICE: Thread LanguageInvoker start, auto delete: false
22:45:43 3275143.000000 T:1826837568  NOTICE: Thread BackgroundLoader start, auto delete: false
22:45:43 3275143.500000 T:1800401984  NOTICE: -->Python Interpreter Initialized<--
22:45:51 3275151.500000 T:1826837568  NOTICE: Thread BackgroundLoader start, auto delete: false
22:46:01 3275161.750000 T:1800401984  NOTICE: ["Initializing provider sosac.ph with settings {'lang': '0', 'downloads': '', 'quality': '2', 'subs': True}"]
22:46:01 3275161.750000 T:1800401984  NOTICE: ['SOSAC Service Started']
22:46:02 3275162.250000 T:1826837568  NOTICE: Thread BackgroundLoader start, auto delete: false
22:46:06 3275166.500000 T:1946154048  NOTICE: CAESinkPi:AddPackets Underrun (delay:0.00 frames:2205)
22:46:06 3275166.500000 T:1826837568  NOTICE: Thread BackgroundLoader start, auto delete: false
22:46:46 3275206.750000 T:1826837568  NOTICE: Previous line repeats 12 times.
22:46:46 3275206.750000 T:1826837568  NOTICE: Thread LanguageInvoker start, auto delete: false
22:46:47 3275207.500000 T:1826837568  NOTICE: -->Python Interpreter Initialized<--
22:46:50 3275210.000000 T:1571808320  NOTICE: Thread BackgroundLoader start, auto delete: false
22:46:50 3275210.250000 T:1633678400  NOTICE: Chyba zpracovani statistiky
22:46:50 3275210.750000 T:1633678400  NOTICE: Chyba načtení novinek
22:46:56 3275216.250000 T:1826837568  NOTICE: Thread LanguageInvoker start, auto delete: false
22:46:56 3275217.000000 T:1826837568  NOTICE: -->Python Interpreter Initialized<--
22:46:59 3275219.500000 T:1633678400  NOTICE: Chyba zpracovani statistiky
22:46:59 3275219.750000 T:1826837568   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'urllib2.HTTPError'>
                                            Error Contents: HTTP Error 400: BAD REQUEST
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py", line 380, in <module>
                                                listShows(url)
                                              File "/storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py", line 150, in listShows
                                                data = getJsonDataFromUrl(url)
                                              File "/storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py", line 126, in getJsonDataFromUrl
                                                response = urllib2.urlopen(req)
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 126, in urlopen
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 406, in open
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 519, in http_response
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 444, in error
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
                                            HTTPError: HTTP Error 400: BAD REQUEST
                                            -->End of Python script error report<--
22:47:00 3275220.000000 T:1633678400  NOTICE: Chyba načtení novinek
22:47:00 3275220.500000 T:1966833664   ERROR: GetDirectory - Error getting plugin://plugin.video.dmd-czech.stream/?mode=1&name=All%20shows&url=http%3a%2f%2fwww.stream.cz%2fAPI%2fcatalogue
22:47:00 3275220.500000 T:1966833664   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.dmd-czech.stream/?mode=1&name=All%20shows&url=http%3a%2f%2fwww.stream.cz%2fAPI%2fcatalogue) failed
22:47:00 3275220.500000 T:1826837568  NOTICE: Thread BackgroundLoader start, auto delete: false
22:47:09 3275229.000000 T:1826837568  NOTICE: Thread LanguageInvoker start, auto delete: false
22:47:09 3275229.750000 T:1826837568  NOTICE: -->Python Interpreter Initialized<--
22:47:12 3275232.500000 T:1633678400  NOTICE: Chyba zpracovani statistiky
22:47:12 3275232.500000 T:1826837568   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'urllib2.HTTPError'>
                                            Error Contents: HTTP Error 400: BAD REQUEST
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py", line 380, in <module>
                                                listShows(url)
                                              File "/storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py", line 150, in listShows
                                                data = getJsonDataFromUrl(url)
                                              File "/storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py", line 126, in getJsonDataFromUrl
                                                response = urllib2.urlopen(req)
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 126, in urlopen
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 406, in open
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 519, in http_response
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 444, in error
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
                                            HTTPError: HTTP Error 400: BAD REQUEST
                                            -->End of Python script error report<--
22:47:12 3275232.750000 T:1633678400  NOTICE: Chyba načtení novinek
22:47:13 3275233.500000 T:1966833664   ERROR: GetDirectory - Error getting plugin://plugin.video.dmd-czech.stream/?mode=1&name=All%20shows&url=http%3a%2f%2fwww.stream.cz%2fAPI%2fcatalogue
22:47:13 3275233.500000 T:1966833664   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.dmd-czech.stream/?mode=1&name=All%20shows&url=http%3a%2f%2fwww.stream.cz%2fAPI%2fcatalogue) failed
22:47:13 3275233.500000 T:1826837568  NOTICE: Thread BackgroundLoader start, auto delete: false
22:47:42 3275262.750000 T:1966833664  NOTICE: Previous line repeats 2 times.
22:47:42 3275262.750000 T:1966833664  NOTICE: Log level changed to "LOG_LEVEL_DEBUG_FREEMEM"
22:47:42 3275262.750000 T:1966833664  NOTICE: Enabled debug logging due to GUI setting. Level 2.
22:47:42 3275262.750000 T:1966833664   DEBUG: ------ Window Init () ------
22:47:44 3275264.250000 T:1851814976   DEBUG: webserver: request received for /jsonrpc
22:47:45 3275265.250000 T:1966833664   DEBUG: Previous line repeats 1 times.
22:47:45 3275265.250000 T:1966833664   DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
22:47:45 3275265.250000 T:1966833664   DEBUG: ------ Window Deinit (SettingsCategory.xml) ------
22:47:45 3275265.250000 T:1966833664   DEBUG: CGUIWindowManager::PreviousWindow: Activate new
22:47:45 3275265.250000 T:1966833664   DEBUG: ------ Window Init (Settings.xml) ------
22:47:45 3275265.500000 T:1419768896   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle 0x5e8c5838
22:47:45 3275265.500000 T:1419768896   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(402672), nBufferAlignmen(16)
22:47:45 3275265.500000 T:1419768896   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.egl_render input port 220 output port 221 m_handle 0x586d2868
22:47:45 3275265.500000 T:1419768896   DEBUG: COMXCoreComponent::UseEGLImage component(OMX.broadcom.egl_render) - port(221), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(15360) nBufferAlignmen(16)
22:47:45 3275265.500000 T:1419768896   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x5e8c5838
22:47:45 3275265.500000 T:1419768896   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.egl_render handle 0x586d2868
22:47:45 3275265.500000 T:1419768896   DEBUG: DoWork - took 101 ms to load special://skin/backgrounds/settings.jpg
22:47:46 3275266.750000 T:1851814976   DEBUG: webserver: request received for /jsonrpc
22:47:46 3275266.750000 T:1966833664   DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
22:47:47 3275267.000000 T:1966833664   DEBUG: ------ Window Deinit (Settings.xml) ------
22:47:47 3275267.000000 T:1966833664   DEBUG: CGUIWindowManager::PreviousWindow: Activate new
22:47:47 3275267.000000 T:1966833664   DEBUG: ------ Window Init (Home.xml) ------
22:47:47 3275267.250000 T:1966833664   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib-arm.so)
22:47:47 3275267.250000 T:1966833664   DEBUG: Unloading: /ImageLib-arm.so
22:47:47 3275267.250000 T:1851814976   DEBUG: webserver: request received for /jsonrpc
22:47:48 3275268.250000 T:1966833664   DEBUG: Previous line repeats 1 times.
22:47:48 3275268.250000 T:1966833664   DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
22:47:49 3275269.750000 T:1966833664   DEBUG: OnKey: 169 (0xa9) pressed, action is Left
22:47:50 3275270.250000 T:1851814976   DEBUG: Previous line repeats 2 times.
22:47:50 3275270.250000 T:1851814976   DEBUG: webserver: request received for /jsonrpc
22:47:50 3275271.000000 T:1966833664   DEBUG: OnKey: 167 (0xa7) pressed, action is Down
22:47:51 3275271.500000 T:1966833664   DEBUG: OnKey: 168 (0xa8) pressed, action is Right
22:47:51 3275271.750000 T:1851814976   DEBUG: webserver: request received for /jsonrpc
22:47:51 3275271.750000 T:1966833664   DEBUG: Activating window ID: 10025
22:47:52 3275272.000000 T:1966833664   DEBUG: ------ Window Deinit (Home.xml) ------
22:47:52 3275272.000000 T:1966833664   DEBUG: ------ Window Init (MyVideoNav.xml) ------
22:47:52 3275272.250000 T:1966833664   DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/video)
22:47:52 3275272.250000 T:1966833664   DEBUG:   ParentPath = [addons://sources/video]
22:47:52 3275272.250000 T:1826837568  NOTICE: Thread BackgroundLoader start, auto delete: false
22:47:52 3275272.500000 T:1546646592   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle 0x622df0f8
22:47:52 3275272.500000 T:1546646592   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(81920), nBufferAlignmen(16)
22:47:52 3275272.500000 T:1546646592   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.egl_render input port 220 output port 221 m_handle 0x5e9c0b18
22:47:52 3275272.500000 T:1546646592   DEBUG: COMXCoreComponent::UseEGLImage component(OMX.broadcom.egl_render) - port(221), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(15360) nBufferAlignmen(16)
22:47:52 3275272.500000 T:1546646592   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x622df0f8
22:47:52 3275272.500000 T:1546646592   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.egl_render handle 0x5e9c0b18
22:47:52 3275272.500000 T:1826837568   DEBUG: Thread BackgroundLoader 1826837568 terminating
22:47:52 3275272.500000 T:1546646592   DEBUG: DoWork - took 106 ms to load special://masterprofile/Thumbnails/7/77016f9f.jpg
22:47:52 3275272.500000 T:1494217792   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle 0x60d434b0
22:47:52 3275272.500000 T:1525675072   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle 0x5915a6e8
22:47:52 3275272.500000 T:1419768896   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/ImageLib-arm.so)
22:47:52 3275272.500000 T:1419768896   DEBUG: Loading: /usr/lib/kodi/system/ImageLib-arm.so
22:47:52 3275272.500000 T:1494217792   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(81920), nBufferAlignmen(16)
22:47:52 3275272.750000 T:1494217792   DEBUG: Previous line repeats 1 times.
22:47:52 3275272.750000 T:1494217792   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.egl_render input port 220 output port 221 m_handle 0x6c54aba0
22:47:52 3275272.750000 T:1494217792   DEBUG: COMXCoreComponent::UseEGLImage component(OMX.broadcom.egl_render) - port(221), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(15360) nBufferAlignmen(16)
22:47:52 3275272.750000 T:1525675072   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.egl_render input port 220 output port 221 m_handle 0x5b545368
22:47:52 3275272.750000 T:1525675072   DEBUG: COMXCoreComponent::UseEGLImage component(OMX.broadcom.egl_render) - port(221), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(15360) nBufferAlignmen(16)
22:47:52 3275272.750000 T:1494217792   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x60d434b0
22:47:52 3275272.750000 T:1525675072   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x5915a6e8
22:47:52 3275272.750000 T:1494217792   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.egl_render handle 0x6c54aba0
22:47:52 3275272.750000 T:1494217792   DEBUG: DoWork - took 132 ms to load special://masterprofile/Thumbnails/c/c2ffe169.jpg
22:47:52 3275272.750000 T:1525675072   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.egl_render handle 0x5b545368
22:47:52 3275272.750000 T:1525675072   DEBUG: DoWork - took 135 ms to load special://masterprofile/Thumbnails/9/96a1cae7.jpg
22:47:52 3275272.750000 T:1525675072   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle 0x693918b0
22:47:52 3275272.750000 T:1525675072   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(81920), nBufferAlignmen(16)
22:47:52 3275272.750000 T:1525675072   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.egl_render input port 220 output port 221 m_handle 0x5b5846e8
22:47:52 3275272.750000 T:1525675072   DEBUG: COMXCoreComponent::UseEGLImage component(OMX.broadcom.egl_render) - port(221), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(15360) nBufferAlignmen(16)
22:47:52 3275272.750000 T:1525675072   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x693918b0
22:47:52 3275272.750000 T:1525675072   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.egl_render handle 0x5b5846e8
22:47:52 3275272.750000 T:1525675072   DEBUG: DoWork - took 106 ms to load special://masterprofile/Thumbnails/e/e3a9d01a.jpg
22:47:52 3275273.000000 T:1419768896   DEBUG: DoWork - took 330 ms to load special://masterprofile/Thumbnails/0/0c6ab98c.png
22:47:52 3275273.000000 T:1546646592   DEBUG: DoWork - took 374 ms to load special://masterprofile/Thumbnails/0/02e23994.png
22:47:53 3275273.000000 T:1494217792   DEBUG: DoWork - took 301 ms to load special://masterprofile/Thumbnails/0/0c41d8cc.png
22:47:53 3275273.250000 T:1851814976   DEBUG: webserver: request received for /jsonrpc
22:47:54 3275274.750000 T:1966833664   DEBUG: Previous line repeats 1 times.
22:47:54 3275274.750000 T:1966833664   DEBUG: Clearing cached fileitems [plugin://plugin.video.dmd-czech.stream/]
22:47:54 3275274.750000 T:1966833664   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.dmd-czech.stream/)
22:47:54 3275274.750000 T:1966833664   DEBUG:   ParentPath = [addons://sources/video]
22:47:54 3275274.750000 T:1525675072   DEBUG: StartScript - calling plugin Stream TV Archiv('plugin://plugin.video.dmd-czech.stream/','168','')
22:47:54 3275274.750000 T:1826837568  NOTICE: Thread LanguageInvoker start, auto delete: false
22:47:54 3275274.750000 T:1525675072   DEBUG: WaitOnScriptResult - waiting on the Stream TV Archiv (id=178) plugin...
22:47:54 3275274.750000 T:1826837568    INFO: initializing python engine.
22:47:54 3275274.750000 T:1826837568   DEBUG: CPythonInvoker(178, /storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py): start processing
22:47:55 3275275.250000 T:1966833664   DEBUG: ------ Window Init (DialogBusy.xml) ------
22:47:55 3275275.500000 T:1826837568  NOTICE: -->Python Interpreter Initialized<--
22:47:55 3275275.500000 T:1826837568   DEBUG: CPythonInvoker(178, /storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py): the source file to load is "/storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py"
22:47:55 3275275.500000 T:1826837568   DEBUG: CPythonInvoker(178, /storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py): setting the Python path to /storage/.kodi/addons/plugin.video.dmd-czech.stream:/storage/.kodi/addons/script.module.dmd-czech.common/lib:/storage/.kodi/addons/script.module.simplejson/lib:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/gtk-2.0
22:47:55 3275275.500000 T:1826837568   DEBUG: CPythonInvoker(178, /storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py): entering source directory /storage/.kodi/addons/plugin.video.dmd-czech.stream
22:47:55 3275275.500000 T:1826837568   DEBUG: CPythonInvoker(178, /storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py): instantiating addon using automatically obtained id of "plugin.video.dmd-czech.stream" dependent on version 2.1.0 of the xbmc.python api
22:47:56 3275276.250000 T:1851814976   DEBUG: webserver: request received for /jsonrpc
22:47:58 3275278.250000 T:1826837568   DEBUG: [Stream TV Archiv] Mode: None
22:47:58 3275278.250000 T:1826837568   DEBUG: [Stream TV Archiv] URL: None
22:47:58 3275278.250000 T:1826837568   DEBUG: [Stream TV Archiv] Name: None
22:47:58 3275278.250000 T:1826837568   DEBUG: LocalizeStrings: no strings.po file exist at /storage/.kodi/addons/plugin.video.dmd-czech.stream/resources/language/English, fallback to strings.xml
22:47:58 3275278.250000 T:1826837568   DEBUG: [Stream TV Archiv] addDir(): 'Latest videos' url='http://www.stream.cz/API/timeline/latest' icon='/storage/.kodi/addons/plugin.video.dmd-czech.stream/icon.png' mode='3'
22:47:58 3275278.250000 T:1826837568   DEBUG: [Stream TV Archiv] addDir(): 'All shows' url='http://www.stream.cz/API/catalogue' icon='/storage/.kodi/addons/plugin.video.dmd-czech.stream/icon.png' mode='1'
22:47:58 3275278.250000 T:1826837568   DEBUG: [Stream TV Archiv] addDir(): 'Fairy tales' url='http://www.stream.cz/API/catalogue?channels=3' icon='/storage/.kodi/addons/plugin.video.dmd-czech.stream/icon.png' mode='1'
22:47:58 3275278.250000 T:1525675072   DEBUG: WaitOnScriptResult- plugin returned successfully
22:47:58 3275278.250000 T:1826837568    INFO: CPythonInvoker(178, /storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py): script successfully run
22:47:58 3275278.250000 T:1826837568    INFO: CPythonInvoker(178, /storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py): waiting on thread 1633678400
22:47:58 3275278.250000 T:1966833664   DEBUG: Saving fileitems [plugin://plugin.video.dmd-czech.stream/]
22:47:58 3275278.250000 T:1966833664   DEBUG:   -- items: 3, sort method: 0, ascending: false
22:47:58 3275278.250000 T:1571808320  NOTICE: Thread BackgroundLoader start, auto delete: false
22:47:58 3275278.500000 T:1633678400  NOTICE: Chyba zpracovani statistiky
22:47:58 3275278.500000 T:1966833664   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
22:47:58 3275278.500000 T:1571808320   DEBUG: Thread BackgroundLoader 1571808320 terminating
22:47:58 3275279.000000 T:1633678400  NOTICE: Chyba načtení novinek
22:47:59 3275279.250000 T:1851814976   DEBUG: webserver: request received for /jsonrpc
22:47:59 3275279.250000 T:1826837568    INFO: Python script stopped
22:47:59 3275279.250000 T:1826837568   DEBUG: Thread LanguageInvoker 1826837568 terminating
22:47:59 3275279.750000 T:1851814976   DEBUG: webserver: request received for /jsonrpc
22:47:59 3275279.750000 T:1966833664   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.dmd-czech.stream/?mode=1&name=All%20shows&url=http%3a%2f%2fwww.stream.cz%2fAPI%2fcatalogue)
22:47:59 3275279.750000 T:1966833664   DEBUG:   ParentPath = [plugin://plugin.video.dmd-czech.stream/]
22:47:59 3275279.750000 T:1419768896   DEBUG: StartScript - calling plugin Stream TV Archiv('plugin://plugin.video.dmd-czech.stream/','169','?mode=1&name=All%20shows&url=http%3a%2f%2fwww.stream.cz%2fAPI%2fcatalogue')
22:47:59 3275279.750000 T:1826837568  NOTICE: Thread LanguageInvoker start, auto delete: false
22:47:59 3275279.750000 T:1419768896   DEBUG: WaitOnScriptResult - waiting on the Stream TV Archiv (id=179) plugin...
22:47:59 3275279.750000 T:1826837568    INFO: initializing python engine.
22:47:59 3275279.750000 T:1826837568   DEBUG: CPythonInvoker(179, /storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py): start processing
22:48:00 3275280.250000 T:1966833664   DEBUG: ------ Window Init (DialogBusy.xml) ------
22:48:00 3275280.500000 T:1826837568  NOTICE: -->Python Interpreter Initialized<--
22:48:00 3275280.500000 T:1826837568   DEBUG: CPythonInvoker(179, /storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py): the source file to load is "/storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py"
22:48:00 3275280.500000 T:1826837568   DEBUG: CPythonInvoker(179, /storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py): setting the Python path to /storage/.kodi/addons/plugin.video.dmd-czech.stream:/storage/.kodi/addons/script.module.dmd-czech.common/lib:/storage/.kodi/addons/script.module.simplejson/lib:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/gtk-2.0
22:48:00 3275280.500000 T:1826837568   DEBUG: CPythonInvoker(179, /storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py): entering source directory /storage/.kodi/addons/plugin.video.dmd-czech.stream
22:48:00 3275280.500000 T:1826837568   DEBUG: CPythonInvoker(179, /storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py): instantiating addon using automatically obtained id of "plugin.video.dmd-czech.stream" dependent on version 2.1.0 of the xbmc.python api
22:48:02 3275282.250000 T:1851814976   DEBUG: webserver: request received for /jsonrpc
22:48:03 3275283.000000 T:1826837568   DEBUG: [Stream TV Archiv] Mode: 1
22:48:03 3275283.000000 T:1826837568   DEBUG: [Stream TV Archiv] URL: http://www.stream.cz/API/catalogue
22:48:03 3275283.000000 T:1826837568   DEBUG: [Stream TV Archiv] Name: All shows
22:48:03 3275283.250000 T:1633678400  NOTICE: Chyba zpracovani statistiky
22:48:03 3275283.500000 T:1826837568   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'urllib2.HTTPError'>
                                            Error Contents: HTTP Error 400: BAD REQUEST
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py", line 380, in <module>
                                                listShows(url)
                                              File "/storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py", line 150, in listShows
                                                data = getJsonDataFromUrl(url)
                                              File "/storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py", line 126, in getJsonDataFromUrl
                                                response = urllib2.urlopen(req)
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 126, in urlopen
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 406, in open
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 519, in http_response
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 444, in error
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
                                            HTTPError: HTTP Error 400: BAD REQUEST
                                            -->End of Python script error report<--
22:48:03 3275283.500000 T:1826837568    INFO: CPythonInvoker(179, /storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py): waiting on thread 1633678400
22:48:03 3275283.500000 T:1966833664   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
22:48:03 3275283.750000 T:1633678400  NOTICE: Chyba načtení novinek
22:48:04 3275284.250000 T:1826837568    INFO: Python script stopped
22:48:04 3275284.250000 T:1826837568   DEBUG: Thread LanguageInvoker 1826837568 terminating
22:48:04 3275284.250000 T:1419768896   DEBUG:  WaitOnScriptResult - plugin exited prematurely - terminating
22:48:04 3275284.250000 T:1966833664   ERROR: GetDirectory - Error getting plugin://plugin.video.dmd-czech.stream/?mode=1&name=All%20shows&url=http%3a%2f%2fwww.stream.cz%2fAPI%2fcatalogue
22:48:04 3275284.250000 T:1966833664   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.dmd-czech.stream/?mode=1&name=All%20shows&url=http%3a%2f%2fwww.stream.cz%2fAPI%2fcatalogue) failed
22:48:04 3275284.250000 T:1966833664   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.dmd-czech.stream/)
22:48:04 3275284.250000 T:1966833664   DEBUG:   ParentPath = [addons://sources/video]
22:48:04 3275284.250000 T:1966833664   DEBUG: Loading items: 3, directory: plugin://plugin.video.dmd-czech.stream/ sort method: 0, ascending: false
22:48:04 3275284.250000 T:1826837568  NOTICE: Thread BackgroundLoader start, auto delete: false
22:48:04 3275284.500000 T:1966833664   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
22:48:04 3275284.500000 T:1826837568   DEBUG: Thread BackgroundLoader 1826837568 terminating
22:48:05 3275285.250000 T:1851814976   DEBUG: webserver: request received for /jsonrpc
22:48:08 3275289.000000 T:1966833664   DEBUG: Previous line repeats 1 times.
22:48:08 3275289.000000 T:1966833664   DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
22:48:23 3275303.250000 T:1966833664   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib-arm.so)
22:48:23 3275303.250000 T:1966833664   DEBUG: Unloading: /ImageLib-arm.so
22:48:29 3275309.750000 T:1546646592   DEBUG: Thread JobWorker 1546646592 terminating (autodelete)
22:48:29 3275309.750000 T:1494217792   DEBUG: Thread JobWorker 1494217792 terminating (autodelete)
22:48:29 3275309.750000 T:1525675072   DEBUG: Thread JobWorker 1525675072 terminating (autodelete)
22:48:34 3275314.250000 T:1419768896   DEBUG: Thread JobWorker 1419768896 terminating (autodelete)
22:49:08 3275349.000000 T:1712899136  NOTICE: ES: Client  from 192.168.1.8 timed out
22:49:09 3275349.250000 T:1946154048   DEBUG: CAESinkPi:Drain delay:99ms now:0ms
22:49:19 3275359.250000 T:1946154048   DEBUG: CAESinkPi:Deinitialize
22:49:19 3275359.250000 T:1946154048   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000000
22:49:19 3275359.250000 T:1946154048   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0x179d6d0
22:57:22 3275842.000000 T:1851814976   DEBUG: webserver: request received for /jsonrpc
22:57:28 3275848.500000 T:1966833664   DEBUG: Previous line repeats 4 times.
22:57:28 3275848.500000 T:1966833664   DEBUG: Activating window ID: 10000
22:57:28 3275848.750000 T:1966833664   DEBUG: ------ Window Deinit (MyVideoNav.xml) ------
22:57:28 3275848.750000 T:1966833664   DEBUG: ------ Window Init (Home.xml) ------
22:57:30 3275850.000000 T:1966833664   DEBUG: OnKey: 168 (0xa8) pressed, action is Right
22:57:30 3275850.000000 T:1946154048    INFO: CActiveAESink::OpenSink - initialize sink
22:57:30 3275850.000000 T:1946154048   DEBUG: CActiveAESink::OpenSink - trying to open device PI:Analogue
22:57:30 3275850.000000 T:1946154048   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000008
22:57:30 3275850.000000 T:1946154048   DEBUG: CAESinkPi:Initialize Format:15 Channels:2 Samplerate:44100 framesize:8 bufsize:17640 bytes/s=352800.00 dest=PI:Analogue
22:57:30 3275850.000000 T:1946154048   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0x2ab2af0
22:57:30 3275850.000000 T:1946154048   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.audio_render) - port(100), nBufferCountMin(1), nBufferCountActual(2), nBufferSize(17648), nBufferAlignmen(16)
22:57:30 3275850.000000 T:1946154048   DEBUG: CActiveAESink::OpenSink - SinkPi Initialized:
22:57:30 3275850.000000 T:1946154048   DEBUG:   Output Device : Analogue
22:57:30 3275850.000000 T:1946154048   DEBUG:   Sample Rate   : 44100
22:57:30 3275850.000000 T:1946154048   DEBUG:   Sample Format : AE_FMT_FLOAT
22:57:30 3275850.000000 T:1946154048   DEBUG:   Channel Count : 2
22:57:30 3275850.000000 T:1946154048   DEBUG:   Channel Layout: FL,FR
22:57:30 3275850.000000 T:1946154048   DEBUG:   Frames        : 2205
22:57:30 3275850.000000 T:1946154048   DEBUG:   Frame Samples : 4410
22:57:30 3275850.000000 T:1946154048   DEBUG:   Frame Size    : 8
22:57:30 3275850.250000 T:1851814976   DEBUG: webserver: request received for /jsonrpc
22:57:30 3275850.250000 T:1966833664   DEBUG: OnKey: 168 (0xa8) pressed, action is Right
22:57:31 3275852.000000 T:1966833664   DEBUG: Previous line repeats 1 times.
22:57:31 3275852.000000 T:1966833664   DEBUG: OnKey: 167 (0xa7) pressed, action is Down
22:57:32 3275852.750000 T:1851814976   DEBUG: webserver: request received for /jsonrpc
22:57:32 3275852.750000 T:1966833664   DEBUG: Activating window ID: 10004
22:57:33 3275853.000000 T:1966833664   DEBUG: ------ Window Deinit (Home.xml) ------
22:57:33 3275853.000000 T:1966833664   DEBUG: ------ Window Init (Settings.xml) ------
22:57:33 3275853.000000 T:1419768896  NOTICE: Thread JobWorker start, auto delete: true
22:57:33 3275853.000000 T:1419768896   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321 m_handle 0x5afe2cc8
22:57:33 3275853.000000 T:1419768896   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBufferCountMin(2), nBufferCountActual(2), nBufferSize(402672), nBufferAlignmen(16)
22:57:33 3275853.250000 T:1419768896   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.egl_render input port 220 output port 221 m_handle 0x6224f728
22:57:33 3275853.250000 T:1419768896   DEBUG: COMXCoreComponent::UseEGLImage component(OMX.broadcom.egl_render) - port(221), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(15360) nBufferAlignmen(16)
22:57:33 3275853.250000 T:1419768896   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x5afe2cc8
22:57:33 3275853.250000 T:1419768896   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.egl_render handle 0x6224f728
22:57:33 3275853.250000 T:1419768896   DEBUG: DoWork - took 112 ms to load special://skin/backgrounds/settings.jpg
22:57:33 3275853.250000 T:1851814976   DEBUG: webserver: request received for /jsonrpc
22:57:34 3275854.500000 T:1966833664   DEBUG: Previous line repeats 1 times.
22:57:34 3275854.500000 T:1966833664   DEBUG: Activating window ID: 10016
22:57:34 3275854.750000 T:1966833664   DEBUG: ------ Window Deinit (Settings.xml) ------
22:57:34 3275854.750000 T:1966833664   DEBUG: ------ Window Init (SettingsCategory.xml) ------
22:57:36 3275856.250000 T:1851814976   DEBUG: webserver: request received for /jsonrpc
22:57:36 3275856.750000 T:1966833664   DEBUG: OnKey: 167 (0xa7) pressed, action is Down
22:57:37 3275858.000000 T:1966833664   DEBUG: Previous line repeats 3 times.
22:57:37 3275858.000000 T:1966833664   DEBUG: OnKey: 168 (0xa8) pressed, action is Right
22:57:38 3275858.500000 T:1851814976   DEBUG: webserver: request received for /jsonrpc
22:57:38 3275858.500000 T:1966833664  NOTICE: Disabled debug logging due to GUI setting. Level 0.
22:57:38 3275858.500000 T:1966833664  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
22:57:40 3275860.250000 T:1525675072  NOTICE: Thread BackgroundLoader start, auto delete: false
22:58:38 3275918.000000 T:1712899136  NOTICE: Previous line repeats 1 times.
22:58:38 3275918.000000 T:1712899136  NOTICE: ES: Client  from 192.168.1.8 timed out
starenka commented 7 years ago

Nemenil se nejak format hlavicek/hesla na API? Kdyz to obalim a kouknu, co to vraci (primo na zarizeni)

    try:
        response = urllib2.urlopen(req)
    except Exception as e:
        log(e.read(),level=xbmc.LOGERROR)
        raise

tak to pise (druha radka):

01:15:28 928.411804 T:1594278976  NOTICE: -->Python Interpreter Initialized<--
01:15:31 931.210510 T:1594278976   ERROR: [Stream TV Archiv] {"hint": "Missing valid API Password", "error": "Bad Request"}
01:15:31 931.226562 T:1574958144  NOTICE: Chyba zpracovani statistiky
01:15:31 931.280701 T:1594278976   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'urllib2.HTTPError'>
                                            Error Contents: HTTP Error 400: BAD REQUEST
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py", line 384, in <module>
                                                listShows(url)
                                              File "/storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py", line 154, in listShows
                                                data = getJsonDataFromUrl(url)
                                              File "/storage/.kodi/addons/plugin.video.dmd-czech.stream/default.py", line 127, in getJsonDataFromUrl
                                                response = urllib2.urlopen(req)
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 126, in urlopen
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 406, in open
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 519, in http_response
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 444, in error
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
                                              File "/home/stephan/projects/openelec-6.0/build.OpenELEC-RPi.arm-6.0.3/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
                                            HTTPError: HTTP Error 400: BAD REQUEST
                                            -->End of Python script error report<--
01:15:31 931.612000 T:1574958144  NOTICE: Chyba načtení novinek
01:15:32 932.187195 T:1966899200   ERROR: GetDirectory - Error getting plugin://plugin.video.dmd-czech.stream/?mode=1&name=All%20shows&url=http%3a%2f%2fwww.stream.cz%2fAPI%2fcatalogue

Zajimavy teda je, ze mam dve raspberry a na jednom to jede v pohode a na druhym ne (stejny verze openelec i pluginu)

starenka commented 7 years ago

Ja uz to chapu. Kdyz koukam, jak generujes to "heslo"... Mam na ty krabicce spatne nastavenej cas :D Sory za zbytecny issue. Na druhou stranu to mozna to nekomu v budoucnu usetri trhani vlasu...

kapitan-iglu commented 7 years ago

Obaval som sa, ze to nakoniec bude takato vec, nedebugovatelna na dialku cez forum,... Kazdopadne poucny report!

Aby sa v buducnosti podobna chyba lahsie hladala, zapisal som si do todo listu:

Aky si mal offest v case? (nech si to viem nasimulovat)

starenka commented 7 years ago

Mel sem ok timezonu, ale nebyly tam nastaveny ntp (nebo byly spatny a nefungovaly), takze to bylo o cca 7-8 hodin. V kazdym pripade, jestli si dobre pamatuju, tak 'time.time()' timezony neresi, tak by to mozna chtelo vyhledove poresit (pokud to teda pouzivaj lidi mimo gmt+1). Nikde sem nenasel docku k tomu api, ale pokud je ten token resenej takle tak to nebejva moc toleratni - rozhodne ne v radu hodin..

kapitan-iglu commented 7 years ago

Dokumentaciu k API som nenasiel ani ja, cas sa pouziva UTC, z vypoctu je tolerancia +/- 12hodin, realita je +12h/-60h. Casovy posun medzi klientom a serverom vyriesim automaticky v niektorej dalsej verzii (tak aby na nom nezalezalo rovnako ako pri pouziti weboveho klienta).