Ingo-FP-Angel / plugin.video.filmfriend.de

A plugin for KODI to play shows and movies from https://filmfriend.de
GNU General Public License v2.0
2 stars 2 forks source link

Playing episodes of a series is not possible #7

Open Ingo-FP-Angel opened 11 months ago

Ingo-FP-Angel commented 11 months ago

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 JSON

Or maybe the movies part of the URL is wrong

frie commented 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.

frie commented 11 months ago

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.

Ingo-FP-Angel commented 11 months ago

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