raptor2101 / Mediathek

GNU General Public License v3.0
45 stars 16 forks source link

ARD Mediathek does not play all streams #111

Closed henning-krause closed 5 years ago

henning-krause commented 5 years ago

While I can stream some movies of the ARD Mediathek, I can't stream any of the shows from the section "Kultur". Using version 0.9.2 of the addin on Kodi 18.

The Kodi log contains this information:

21:45:01.732 T:1937006112   DEBUG: OnPlayMedia plugin://plugin.video.mediathek/?type=ARD&action=openJsonLink&link=https%3A%2F%2Fwww.ardmediathek.de%2Fard%2Fplayer%2FY3JpZDovL3N3ci5kZS9hZXgvbzEwOTU0OTI
21:45:01.746 T:1937006112   DEBUG: StartScript - calling plugin Mediathek('plugin://plugin.video.mediathek/','23','?type=ARD&action=openJsonLink&link=https%3A%2F%2Fwww.ardmediathek.de%2Fard%2Fplayer%2FY3JpZDovL3N3ci5kZS9hZXgvbzEwOTU0OTI','resume:false')
21:45:01.747 T:1402975088   DEBUG: Thread LanguageInvoker start, auto delete: false
21:45:01.747 T:1402975088    INFO: initializing python engine.
21:45:01.747 T:1402975088   DEBUG: CPythonInvoker(32, /storage/.kodi/addons/plugin.video.mediathek/default.py): start processing
21:45:01.757 T:1936991088   DEBUG: CAnnouncementManager - Announcement: OnAdd from xbmc
21:45:01.758 T:1936991088   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnAdd
21:45:01.768 T:1428153200   DEBUG: Thread scriptobs start, auto delete: false
21:45:01.807 T:1402975088   DEBUG: -->Python Interpreter Initialized<--
21:45:01.808 T:1402975088   DEBUG: CPythonInvoker(32, /storage/.kodi/addons/plugin.video.mediathek/default.py): the source file to load is "/storage/.kodi/addons/plugin.video.mediathek/default.py"
21:45:01.810 T:1402975088   DEBUG: CPythonInvoker(32, /storage/.kodi/addons/plugin.video.mediathek/default.py): setting the Python path to /storage/.kodi/addons/plugin.video.mediathek:/storage/.kodi/addons/script.module.beautifulsoup4/lib:/storage/.kodi/addons/script.module.certifi/lib:/storage/.kodi/addons/script.module.chardet/lib:/storage/.kodi/addons/script.module.idna/lib:/storage/.kodi/addons/script.module.requests/lib:/storage/.kodi/addons/script.module.urllib3/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
21:45:01.810 T:1402975088   DEBUG: CPythonInvoker(32, /storage/.kodi/addons/plugin.video.mediathek/default.py): entering source directory /storage/.kodi/addons/plugin.video.mediathek
21:45:01.810 T:1402975088   DEBUG: CPythonInvoker(32, /storage/.kodi/addons/plugin.video.mediathek/default.py): instantiating addon using automatically obtained id of "plugin.video.mediathek" dependent on version 2.25.0 of the xbmc.python api
21:45:01.968 T:1937006112   DEBUG: ------ Window Init (DialogBusy.xml) ------
21:45:03.018 T:1402975088   DEBUG: CAddonSettings[plugin.video.mediathek]: loading setting definitions
21:45:03.018 T:1402975088   DEBUG: CAddonSettings[plugin.video.mediathek]: trying to load setting definitions from old format...
21:45:03.020 T:1402975088   DEBUG: [Mediathek]: quality: 2
21:45:03.022 T:1402975088   DEBUG: [Mediathek]: Quality: 2
21:45:03.022 T:1402975088   DEBUG: [Mediathek]: argv[0]: plugin://plugin.video.mediathek/
21:45:03.022 T:1402975088   DEBUG: [Mediathek]: argv[1]: 23
21:45:03.058 T:1402975088   DEBUG: [Mediathek]: download https://www.ardmediathek.de/ard/player/Y3JpZDovL3N3ci5kZS9hZXgvbzEwOTU0OTI
21:45:03.358 T:1402975088   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: 'NoneType' object is not callable
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.mediathek/default.py", line 103, in <module>
                                                mediathek.playVideoFromJsonLink(link);
                                              File "/storage/.kodi/addons/plugin.video.mediathek/mediathek/ard.py", line 195, in playVideoFromJsonLink
                                                jsonContent = self.extractJsonFromPage(link);
                                              File "/storage/.kodi/addons/plugin.video.mediathek/mediathek/ard.py", line 75, in extractJsonFromPage
                                                return json.loads(jsonContent);
                                              File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
                                              File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
                                              File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
                                              File "/usr/lib/python2.7/json/decoder.py", line 36, in errmsg
                                            TypeError: 'NoneType' object is not callable
                                            -->End of Python script error report<--
21:45:03.358 T:1402975088   DEBUG: onExecutionDone(32, /storage/.kodi/addons/plugin.video.mediathek/default.py)
21:45:03.362 T:1937006112   DEBUG: ------ Window Init (DialogNotification.xml) ------
21:45:03.603 T:1402975088    INFO: Python interpreter stopped
21:45:03.603 T:1402975088   DEBUG: Thread LanguageInvoker 1402975088 terminating
21:45:03.622 T:1428153200   DEBUG: Thread scriptobs 1428153200 terminating
21:45:03.627 T:1937006112   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
21:45:03.627 T:1937006112   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.mediathek/?type=ARD&action=openJsonLink&link=https%3A%2F%2Fwww.ardmediathek.de%2Fard%2Fplayer%2FY3JpZDovL3N3ci5kZS9hZXgvbzEwOTU0OTI]
21:45:03.628 T:1937006112   DEBUG: Playlist Player: no more playable items... aborting playback