Skip to content

Commit

Permalink
v1 DRM-free video support
Browse files Browse the repository at this point in the history
  • Loading branch information
pablouser1 committed Feb 12, 2023
1 parent b8c0a15 commit 320afe1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.filmin" name="Filmin" version="1.6.1" provider-name="pablouser1">
<addon id="plugin.video.filmin" name="Filmin" version="1.6.2" provider-name="pablouser1">
<requires>
<import addon="xbmc.python" version="3.0.0" />
<import addon="script.module.requests" version="2.22.0+matrix.1" />
Expand All @@ -19,8 +19,8 @@
<website>https://github.com/pablouser1/plugin.video.filmin</website>
<source>http://github.com/pablouser1/plugin.video.filmin</source>
<news>
v1.6.1 (11/02/2023)
Client-Id y Client-Secret correctos
v1.6.2 (11/02/2023)
Soporte para DRM-Free v1 streaming
</news>
<assets>
<icon>resources/icon.png</icon>
Expand Down
5 changes: 5 additions & 0 deletions resources/lib/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 320afe1

Please sign in to comment.