Skip to content

Commit

Permalink
login hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
pablouser1 committed Feb 2, 2024
1 parent b373fa3 commit 4b6c3c0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
4 changes: 3 additions & 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.7.0" provider-name="pablouser1">
<addon id="plugin.video.filmin" name="Filmin" version="1.7.1" 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 @@ -24,6 +24,8 @@
<website>https://www.filmin.es/</website>
<source>https://github.com/pablouser1/plugin.video.filmin</source>
<news>
v1.7.1 (02/02/2024)
- Hotfix, arreglado AttributeError al iniciar sesión
v1.7.0 (02/01/2024)
- Sincronización con Filmin deshabilitada temporalmente
- Refactoring del código siguiendo los estándares PEP
Expand Down
5 changes: 0 additions & 5 deletions resources/lib/helpers/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
from urllib.parse import urlencode


def enum(**enums):
"""Emulate enum type"""
return type("Enum", (), enums)


def is_drm(stream_type: str) -> bool:
"""Checks if stream has DRM"""
return stream_type in ["dash+http+widevine", "dash+https+widevine"]
Expand Down
3 changes: 1 addition & 2 deletions resources/lib/player/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ def start(self):
"inputstream.adaptive.license_type", self.DRM)
play_item.setProperty(
"inputstream.adaptive.license_key",
stream["license_url"] + "||R{SSM}|"
)
stream["license_url"] + "||R{SSM}|")

# Start playing
monitor = Monitor()
Expand Down
2 changes: 1 addition & 1 deletion resources/lib/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def ask_login():
password = Dialog().input(settings.get_localized_string(40031))
if username and password:
res = api.login(username, password)
api.setToken(res["access_token"])
api.set_token(res["access_token"])
change_profile()
user = api.user()
settings.set_auth(
Expand Down
3 changes: 2 additions & 1 deletion tools/api_m.example.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# flake8: noqa
import json
import sys
import os

PARENT_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..")
sys.path.append(PARENT_PATH) # Add parent path to searchable list
from resources.lib.api import Api # noqa: E402
from resources.lib.api import Api


def prettyPrint(data):
Expand Down

0 comments on commit 4b6c3c0

Please sign in to comment.