From 320afe1e519fe2d05c2abc4a83601ea4837ba962 Mon Sep 17 00:00:00 2001 From: Pablo Ferreiro Date: Sun, 12 Feb 2023 11:27:40 +0100 Subject: [PATCH] v1 DRM-free video support --- addon.xml | 6 +++--- resources/lib/api.py | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/addon.xml b/addon.xml index e15feb2..a84c3f4 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + @@ -19,8 +19,8 @@ https://github.com/pablouser1/plugin.video.filmin http://github.com/pablouser1/plugin.video.filmin - v1.6.1 (11/02/2023) - Client-Id y Client-Secret correctos + v1.6.2 (11/02/2023) + Soporte para DRM-Free v1 streaming resources/icon.png diff --git a/resources/lib/api.py b/resources/lib/api.py index 91bed09..ca84875 100644 --- a/resources/lib/api.py +++ b/resources/lib/api.py @@ -194,6 +194,11 @@ def getStreams(self, item_id: int) -> dict: streams = {} # -- Single feed -- # if not 'feeds' in res: + if 'FLVURL' in res: + # Add support for v1 (DRM-Free) video + res['src'] = res['FLVURL'] + res['type'] = 'FLVURL' + # We have to convert it to the multi-feed response streams = { 'feeds': [res],