Skip to content

Commit

Permalink
Mejor soporte para No-DRM
Browse files Browse the repository at this point in the history
  • Loading branch information
pablouser1 committed Feb 19, 2023
1 parent 320afe1 commit b4de0b7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion 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.2" provider-name="pablouser1">
<addon id="plugin.video.filmin" name="Filmin" version="1.6.3" provider-name="pablouser1">
<requires>
<import addon="xbmc.python" version="3.0.0" />
<import addon="script.module.requests" version="2.22.0+matrix.1" />
Expand Down
5 changes: 3 additions & 2 deletions resources/lib/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from .exceptions.ApiV3Exception import ApiV3Exception
from .exceptions.UApiException import UApiException
from .exceptions.DialogException import DialogException
from .helpers.Misc import isDrm

class Api:
s = requests.Session()
Expand Down Expand Up @@ -194,9 +195,9 @@ def getStreams(self, item_id: int) -> dict:
streams = {}
# -- Single feed -- #
if not 'feeds' in res:
if 'FLVURL' in res:
if not isDrm(res.get('type', 'FLVURL')):
# Add support for v1 (DRM-Free) video
res['src'] = res['FLVURL']
res['src'] = res.get('FLVURL') or res.get('src')
res['type'] = 'FLVURL'

# We have to convert it to the multi-feed response
Expand Down
10 changes: 5 additions & 5 deletions resources/lib/player/Mediamark.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ class Mediamark:
AUTH_TOKEN = "Njk1MzM5MjAtNDVmNi0xMWUzLThmOTYtMDgwMDIwMGM5YTY2" # I -- THINK -- this is hardcoded, I hope so.
s = requests.Session()
TOKEN = ''
USER_ID = 0
USER_ID = -1
PROFILE_ID = ''
MEDIA_ID = 0
VERSION_ID = 0
MEDIA_VIEWING_ID = 0
SESSION_ID = 0
MEDIA_ID = -1
VERSION_ID = -1
MEDIA_VIEWING_ID = -1
SESSION_ID = -1

DEVICE_MODEL = 'Kodi'
DEVICE_OS_VERSION = '12'
Expand Down

0 comments on commit b4de0b7

Please sign in to comment.