Open Ingo-FP-Angel opened 11 months ago
My observation was that "not proper JSON" in fact is an empty result string, caused by a 404 response to the http request.
Or maybe the
movies
part of the URL is wrong
When replacing movies
by episodes
the plugin plays the episode (but no movies longer when just putting this into the code...). Probably there will be some way to tell the function how to build the correct URL.
v1.0.4 implements kind of a hack, because playing a video (currently) just passes its ID but not the meta data to the playback function (which would allow to distinguish the type of entry).
For now the plugin first requests video details as movie
and if that returns a 404 it tries again as episode
In v1.0.3 it is not possible to play single episodes (only movies work).
From the exception in the log it looks like the result of
requests.get(f'https://api.tenant.frontend.vod.filmwerte.de/v11/{lm4utils.getSetting("tenant")}/movies/{videoId}/uri',headers=headers)
is not proper JSONOr maybe the
movies
part of the URL is wrong