[REL] Plex-Plugin-ARDMediathek2016

@rols1
Thank you for the fast respond, I installed the new plugin ver. 2.5.5 but still having the same issue. I try playing the last 8 episodes from the “Bares für Rares” and was not able to view any of them. Attached is the Log file and some screen shots.

Thank you again for taking your time and helping out. I’m trying to get this working for my mother in-law. She just moved here to Florida from Germany and this is one of her favorite shows she missed watching.

update: added another log file from today while trying to play “Bares für Rares” episode from November 17th. per your request.

Thank you!



@PLEX_VIP_LOUNGE
with the new log I can localize the problem at third step to get the video-sources from https://api.zdf.de. Here you get “HTTP Error 403: Forbidden”. That’s an Authentication-problem. I assume, ZDF uses different Application-Tokens in / outside Germany.
Up to now i have used the same apiToken hard-coded in the Plugin. The new ver2.5.6 fetch the apiToken at step 2 and injects it at step 3. The pictures shows details in code.
Please try the new Version and attach a new Logfile (also if it fails).

I hope that works. If not, I need your help to track the communication between your browser and api.zdf.de. Therefore you can use the development-tools of your chrome-Browser (with a little help from me).

Edit:
@All: Someone else who is using the Plugin outside of Germany and can give feedback about Videos in ZDF-Part?


@PLEX_VIP_LOUNGE
I’ve have found a workaround to get the video sources under different circumstances.
No need to install ver2.5.6.
Update ver2.5.7 will be available tomorrow.

Update für die ZDF-Funktionen im Plugin - ZDF-Videoquellen

Version 2.5.7, Github: https://github.com/rols1/Plex-Plugin-ARDMediathek2016/releases

Wesentliche Änderungen:

  • Neufassung des HTTP-Kopfbereichs (Http-Header), um Blockaden des ZDF-Servers api.zdf.de zu vermeiden.
  • Ermittlung einer alternativen Videoquelle in der übermittelten json-Datei
  • ZDF_Bildgalerie: Integration von Bildstrecken, die nicht als Galerie deklariert sind.

Zum ersten Punkt waren einige “Verrenkungen” nötig. Im Gegensatz zum früheren xml-Service des ZDF gibt’s zur Zeit keine Unterstützung mehr für Programme abseits eigener Apps. Meine Mail-Anfragen dazu blieben auch unbeantwortet.
Um so mehr freue ich mich, dass ich das Plugin wieder wie gewohnt nutzen kann.

Je nach Bedarf nehme ich noch kleinere Detailanpassungen vor - ohne hier zu posten

Hallo, erstmal Danke fuer die toole Arbeit die ihr hier macht.
Ich habe gerade die neue Version 2.5.7 aufgespielt.
Wie gestern auch, kann leider bei den TV-Livestreams nur ARD emfangen. Der Rest ist ein schwarzer Bildschirm.
Nun bin ich ziemlich neu mit Plex und vielleicht muss ich noch extra was konfigurieren?
I habe Plex auf einem Windows laptop installiert.

Danke, Wolfgang

@rols1 said:
Edit:
@All: Someone else who is using the Plugin outside of Germany and can give feedback about Videos in ZDF-Part?

I live in Spain. I installed today the latest plugin 2.5.7. Only ARD live TV works. All others do not work

@wp.rauchholz@gmail.com

I live in Spain. I installed today the latest plugin 2.5.7. Only ARD live TV works. All others do not work

Danke für die Rückmeldung. Ich würde gern herausfinden, was durch Geoblocking und was durch fehlerhaften Code verursacht wird.
Bitte wähle ein ein oder zwei ZDF-Live-Sender an und poste hier das Logfile

  • Kannst du die Live Sender von der Seite TV-Programm live - ZDFmediathek im Browser abrufen?
  • kannst du im Plugin Mediathek-Videos aus dem ZDF-Bereich abrufen (ZDF-Verpasst, A-Z,…)?

Logfile:
…/Application Support/Plex Media Server/Logs/PMS Plugin Logs/com.plexapp.plugins.ardmediathek2016.log

Nun bin ich ziemlich neu mit Plex und vielleicht muss ich noch extra was konfigurieren?
I habe Plex auf einem Windows laptop installiert.

Da die ARD live funktioniert, dürfte aus meiner Sicht die Konfiguration OK sein.

TV_Live-Sender (Privat): Suche nach Ersatz für NRW.tv und Joiz

NRW.tv und Joiz sind eingestellt; Reaktivierung ist nicht absehbar.

Welche privaten TV-Live-Sender sollen dafür im Plugin integriert werden?

Voraussetzung:

  • öffentlicher Livestream, ohne Anmeldung, ohne Kosten
  • im Webbrowser auf der Senderseite abbrufbar (keine Drittanbieter)

Wenn es möglich wäre die Prosieben Maxx Mediathek., bitte.

@Viper020GER said:
Wenn es möglich wäre die Prosieben Maxx Mediathek., bitte.

Mißverständnis - tut mir leid. Gemeint war ein Ersatz für ausgefallene TV-Live-Sender innerhalb des Plugins. Ein weiteres Plugin ist z.Z. nicht in Planung.
Auch: die Live-Streams der ProSiebenSat.1-Gruppe sind wohl nur mit Registrierung erreichbar.

OK, Schade

Wife likes Tatort so nice to see this works from the US. Thx.

@rolajos said:
Wife likes Tatort so nice to see this works from the US. Thx.
Thx.
Can she also see some of the TV-Livestreams from USA, especially ZDF, ZDFneo, ZDFinfo?

Kannst du die Live Sender von der Seite https://www.zdf.de/live-tv im Browser abrufen? / Nein
kannst du im Plugin Mediathek-Videos aus dem ZDF-Bereich abrufen (ZDF-Verpasst, A-Z,…)? / Ja

Datei im Anhang

Nicht sicher ob miene Antwort durchkam…

Ich kann ZDF Videos aus der Mediathek abrufen
Ich kann nicht Live Sendungen von der Seite https://www.zdf.de/live-tv anschauen

Datei im Anhang

Ich kann nocht die Live Sender von der Seite https://www.zdf.de/live-tv im Browser abrufen.
Icf kann im Plugin Mediathek-Videos aus dem ZDF-Bereich abrufen (ZDF-Verpasst, A-Z,…).

Hier der print out de Datei.

Part 1

2016-11-23 14:08:20,838 (36e8) : INFO (core:349) - Starting framework core - Version: 2.6.3, Build: 1bef33a (Tue Nov 08 13:02:04 UTC 2016)
2016-11-23 14:08:20,841 (36e8) : DEBUG (core:361) - Using the elevated policy
2016-11-23 14:08:20,841 (36e8) : DEBUG (core:450) - Starting runtime component.
2016-11-23 14:08:20,844 (36e8) : DEBUG (core:450) - Starting caching component.
2016-11-23 14:08:20,845 (36e8) : DEBUG (core:450) - Starting data component.
2016-11-23 14:08:20,845 (36e8) : DEBUG (core:450) - Starting networking component.
2016-11-23 14:08:20,852 (36e8) : DEBUG (networking:284) - Loaded HTTP cookies
2016-11-23 14:08:20,874 (36e8) : DEBUG (networking:452) - Setting the default network timeout to 20.0
2016-11-23 14:08:20,875 (36e8) : DEBUG (core:450) - Starting localization component.
2016-11-23 14:08:20,875 (36e8) : INFO (localization:409) - Setting the default locale to en-us
2016-11-23 14:08:20,875 (36e8) : DEBUG (core:450) - Starting messaging component.
2016-11-23 14:08:20,878 (d20) : DEBUG (networking:166) - Requesting ‘http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.plugins.ardmediathek2016
2016-11-23 14:08:20,884 (36e8) : DEBUG (core:450) - Starting debugging component.
2016-11-23 14:08:20,884 (36e8) : DEBUG (core:450) - Starting services component.
2016-11-23 14:08:20,885 (36e8) : DEBUG (core:450) - Starting myplex component.
2016-11-23 14:08:20,887 (36e8) : DEBUG (core:450) - Starting notifications component.
2016-11-23 14:08:21,088 (36e8) : DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.plugins.ardmediathek2016 in namespace ‘metadata’
2016-11-23 14:08:21,121 (36e8) : DEBUG (networking:166) - Requesting ‘http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes
2016-11-23 14:08:21,177 (36e8) : DEBUG (runtime:1117) - Created a thread named ‘load_all_services’
2016-11-23 14:08:21,177 (30dc) : DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2016-11-23 14:08:21,180 (36e8) : DEBUG (runtime:1117) - Created a thread named ‘get_server_info’
2016-11-23 14:08:21,180 (30dc) : DEBUG (networking:166) - Requesting ‘http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_
2016-11-23 14:08:21,180 (38c) : DEBUG (networking:166) - Requesting ‘http://127.0.0.1:32400
2016-11-23 14:08:21,180 (36e8) : DEBUG (core:150) - Finished starting framework core
2016-11-23 14:08:21,184 (36e8) : DEBUG (core:560) - Loading plug-in code
2016-11-23 14:08:21,280 (38c) : DEBUG (core:538) - Machine identifier is 930da754e7dbb9e52911a30162ae6864eb4823f8
2016-11-23 14:08:21,282 (38c) : DEBUG (core:539) - Server version is 1.2.7.2987-1bef33a
2016-11-23 14:08:21,732 (30dc) : DEBUG (services:362) - Loaded services
2016-11-23 14:08:21,743 (3a74) : DEBUG (services:438) - No shared code to load
2016-11-23 14:08:22,138 (36e8) : DEBUG (core:566) - Finished loading plug-in code
2016-11-23 14:08:22,168 (36e8) : DEBUG (runtime:640) - Adding a prefix handler for ‘ARD Mediathek 2016’ (’/video/ardmediathek2016’)
2016-11-23 14:08:22,174 (36e8) : INFO (core:611) - Started plug-in
2016-11-23 14:08:22,174 (36e8) : DEBUG (socketinterface:160) - Starting socket server
2016-11-23 14:08:22,176 (36e8) : DEBUG (runtime:1117) - Created a thread named ‘start’
2016-11-23 14:08:22,177 (36e8) : INFO (socketinterface:184) - Socket server started on port 52817
2016-11-23 14:08:22,177 (36e8) : INFO (pipeinterface:25) - Entering run loop
2016-11-23 14:08:22,177 (36e8) : DEBUG (runtime:717) - Handling request GET /:/prefixes
2016-11-23 14:08:22,177 (36e8) : DEBUG (runtime:814) - Found route matching /:/prefixes
2016-11-23 14:08:22,178 (36e8) : DEBUG (runtime:924) - Response: [200] MediaContainer, 482 bytes
2016-11-23 14:08:22,206 (4298) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/icon.png?t=1479747771
2016-11-23 14:08:22,213 (43f8) : DEBUG (runtime:717) - Handling request GET /video/ardmediathek2016
2016-11-23 14:08:22,229 (4298) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/icon.png
2016-11-23 14:08:22,257 (43f8) : DEBUG (runtime:814) - Found route matching /video/ardmediathek2016
2016-11-23 14:08:22,259 (43f8) : INFO (logkit:16) - Funktion Main
2016-11-23 14:08:22,260 (43f8) : INFO (logkit:16) - /video/ardmediathek2016
2016-11-23 14:08:22,262 (43f8) : INFO (logkit:16) - 2.5.7
2016-11-23 14:08:22,262 (43f8) : INFO (logkit:16) - 21.11.2016
2016-11-23 14:08:22,263 (43f8) : INFO (logkit:16) - Client:
2016-11-23 14:08:22,263 (43f8) : INFO (logkit:16) - Chrome
2016-11-23 14:08:22,273 (43f8) : DEBUG (base:117) - Checking if com.plexapp.plugins.ardmediathek2016 is broken
2016-11-23 14:08:22,276 (43f8) : DEBUG (networking:166) - Requesting ‘http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzYKY29tLnBsZXhhcHAucGx1Z2lucy5hcmRtZWRpYXRoZWsyMDE2czEwCmlkZW50aWZpZXJyMAo_
2016-11-23 14:08:22,381 (43f8) : DEBUG (runtime:88) - Sending packed state data (117 bytes)
2016-11-23 14:08:22,382 (43f8) : DEBUG (runtime:924) - Response: [200] MediaContainer, 2070 bytes
2016-11-23 14:08:22,441 (3c54) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/ard-mediathek.png?t=1479747771
2016-11-23 14:08:22,444 (3c54) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/ard-mediathek.png
2016-11-23 14:08:22,484 (1c9c) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/ard-mediathek.png?t=1479747771
2016-11-23 14:08:22,509 (3854) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/zdf-mediathek.png?t=1479747770
2016-11-23 14:08:22,522 (1c9c) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/ard-mediathek.png
2016-11-23 14:08:22,532 (3d6c) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/icon.png?t=1479747771
2016-11-23 14:08:22,540 (3408) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/tv-livestreams.png?t=1479747772
2016-11-23 14:08:22,551 (3854) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/zdf-mediathek.png
2016-11-23 14:08:22,552 (40cc) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/ard-mediathek.png?t=1479747771
2016-11-23 14:08:22,558 (3a5c) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/radio-livestreams.png?t=1479747773
2016-11-23 14:08:22,559 (3d6c) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/icon.png
2016-11-23 14:08:22,566 (3408) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/tv-livestreams.png
2016-11-23 14:08:22,578 (40cc) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/ard-mediathek.png
2016-11-23 14:08:22,584 (3a5c) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/radio-livestreams.png
2016-11-23 14:08:24,822 (2198) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/plugin-update.png?t=1479747769
2016-11-23 14:08:24,828 (2198) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/plugin-update.png
2016-11-23 14:08:24,832 (3020) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/plugin-preferences.png?t=1479747770
2016-11-23 14:08:24,835 (4264) : DEBUG (runtime:717) - Handling request GET /video/ardmediathek2016
2016-11-23 14:08:24,841 (3020) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.ardmediathek2016/resources/plugin-preferences.png
2016-11-23 14:08:24,842 (4264) : DEBUG (runtime:49) - Received packed state data (80 bytes)
2016-11-23 14:08:24,848 (4264) : DEBUG (runtime:814) - Found route matching /video/ardmediathek2016
2016-11-23 14:08:24,849 (4264) : INFO (logkit:16) - Funktion Main
2016-11-23 14:08:24,852 (4264) : INFO (logkit:16) - /video/ardmediathek2016
2016-11-23 14:08:24,857 (4264) : INFO (logkit:16) - 2.5.7
2016-11-23 14:08:24,859 (4264) : INFO (logkit:16) - 21.11.2016
2016-11-23 14:08:24,861 (4264) : INFO (logkit:16) - Client:
2016-11-23 14:08:24,864 (4264) : INFO (logkit:16) - Chrome
2016-11-23 14:08:24,878 (4264) : DEBUG (base:117) - Checking if com.plexapp.plugins.ardmediathek2016 is broken
2016-11-23 14:08:24,885 (4264) : DEBUG (networking:166) - Requesting ‘http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzYKY29tLnBsZXhhcHAucGx1Z2lucy5hcmRtZWRpYXRoZWsyMDE2czEwCmlkZW50aWZpZXJyMAo_
2016-11-23 14:08:24,918 (4264) : DEBUG (runtime:88) - Sending packed state data (117 bytes)
2016-11-23 14:08:24,923 (4264) : DEBUG (runtime:924) - Response: [200] MediaContainer, 2070 bytes
2016-11-23 14:08:24,950 (3d84) : DEBUG (runtime:717) - Handling request GET /video/ardmediathek2016/Main_ZDF?name=ZDF+Mediathek
2016-11-23 14:08:24,957 (3d84) : DEBUG (runtime:49) - Received packed state data (80 bytes)
2016-11-23 14:08:24,960 (3d84) : DEBUG (runtime:814) - Found route matching /video/ardmediathek2016/Main_ZDF
2016-11-23 14:08:24,961 (3d84) : INFO (logkit:16) - Funktion Main_ZDF
2016-11-23 14:08:24,963 (3d84) : INFO (logkit:16) - /video/ardmediathek2016

Part 5

2016-11-23 14:10:07,428 (405c) : DEBUG (runtime:88) - Sending packed state data (1021 bytes)
2016-11-23 14:10:07,428 (405c) : CRITICAL (core:574) - Exception when writing response for request ‘/video/ardmediathek2016/SenderLiveResolution?path=http%3A%2F%2Fkika_geo-lh.akamaihd.net%2Fi%2Flivetvkika_de%4075114%2Fmaster.m3u8&thumb=%2F%3A%2Fplugins%2Fcom.plexapp.plugins.ardmediathek2016%2Fresources%2Ftv-kika.png%3Ft%3D1479747772&title=KiKA’ (most recent call last):
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bef33a\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\interfaces\socketinterface.py”, line 104, in _handle_request
status, headers, body = type(self)._core.runtime.handle_request(self.request)
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bef33a\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py”, line 924, in handle_request
self._core.log.debug(“Response: [%d] %s%d bytes”, status, (original_type.name + ", ") if original_type else ‘’, len(body))
UnboundLocalError: local variable ‘body’ referenced before assignment

@wp.rauchholz@gmail.com said:
Kannst du die Live Sender von der Seite TV-Programm live - ZDFmediathek im Browser abrufen? / Nein
kannst du im Plugin Mediathek-Videos aus dem ZDF-Bereich abrufen (ZDF-Verpasst, A-Z,…)? / Ja

Datei im Anhang

Alles angekommen. Das hilft schon weiter.
Prima, dass die Videos aus dem ZDF-Bereich laufen. Der Zugriff auf die Videoquellen war ziemlich problematisch. Jetzt weiß ich, dass - an dieser Stelle - kein Geoblocking stattfindet.
Deine Logdatei (Part 5) zeigt , wo das Problem auftritt: beim Abruf der m3u8-Datei (enthält die Auflösungsstufen + Bandbreiten) vom Server kika_geo-lh.akamaihd.net.
Ich vermute, dass das Problem bei allen TV-Sendern auftritt, die den Server lh.akamaihd.net nutzen. Leider zeigt der Plex-Output im Log nicht die eigentliche Ursache.
Von daher kann ich im Plugin wenig ausrichten.
Die Ursache scheint außerhalb von Plex zu liegen; ein Indiz dafür ist auch, dass deine Zugriffe auf die Live-Sender auf der Seite TV-Programm live - ZDFmediathek fehlschlagen.

Wenn du hier weiter nachforschen möchtest, empfehle ich

  • den Abruf in einem anderen Medienplayer, vorzugsweise VLC. Dort unter Media/Netwok Stream die URL http://daserste_live-lh.akamaihd.net/i/daserste_de@91204/master.m3u8 eingeben. Hat VLC ebenfalls ein Problem, hilft ev. seine Fehlerausgabe weiter.

  • klappt das nicht, kann ein anderes Werkzeug helfen (ist aber aufwändiger): curl installieren und auf der Konsole (cmd) ausführen: curl -v http://kika_geo-lh.akamaihd.net/i/livetvkika_de@75114/master.m3u8. Curl listet dann die HTTP-Kommunikation mit dem Server bis zum Abbruch auf.

Bei Problemen zur Installation von Curl unter Windows muss ich leider passen; ich arbeite mit Linux.

Gruß
Roland

@wp.rauchholz@gmail.com said:
Hier der print out de Datei.

Next time please do attach the log file :wink: