Skip to content

Commit

Permalink
Cambios de Client Id
Browse files Browse the repository at this point in the history
  • Loading branch information
pablouser1 committed Jan 3, 2023
1 parent b164a76 commit 992a63e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
8 changes: 6 additions & 2 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.5.0" provider-name="pablouser1">
<addon id="plugin.video.filmin" name="Filmin" version="1.5.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 @@ -18,7 +18,11 @@
<license>GPL-3.0-or-later</license>
<website>https://github.com/pablouser1/plugin.video.filmin</website>
<source>http://github.com/pablouser1/plugin.video.filmin</source>
<news>v1.5.0 (10/09/2022)
<news>
v1.5.1 (03/01/2023)
Arreglados varios errores que hacían imposible reproducir contenido
---
v1.5.0 (10/09/2022)
Implementado sistema de perfiles
IMPORTANTE: Cierra sesión antes de utilizar si vienes de una versión anterior
</news>
Expand Down
2 changes: 1 addition & 1 deletion resources/lib/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Api:
s = requests.Session()

# Both extracted from the Android app
CLIENT_ID = "zXZXrpum7ayGcWlo"
CLIENT_ID = "5dV4xPOpaTPjPpNm"
CLIENT_SECRET = "yICstBCQ8CKB8RF6KuDmr9R20xtfyYbm"

DEVICE_MODEL = 'Kodi'
Expand Down
4 changes: 4 additions & 0 deletions resources/lib/helpers/ListItemExtra.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ def videoApiv3(url: str, item: dict) -> ListItem:
"userrating": item["avg_votes_users"] if item.get("avg_votes_users") else None,
"duration": item["duration"] * 60 # Filmin returns duration in minutes, Kodi wants it in seconds
}

if item.get('is_premier', False):
info['plot'] += '\n\n(PARA ALQUILAR)'

list_item.setInfo('video', info)
# ART
art = Art.apiv3(item["imageResources"]["data"])
Expand Down
4 changes: 2 additions & 2 deletions resources/lib/player/Handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Play():

def __init__(self, el_id: int):
self.item = api.getMediaSimple(el_id)
self.canWatch = len(self.item['user_data']['can_watch']['data']) > 0
self.canWatch = len(self.item['user_data']['can_watch']['data']) > 0 if 'can_watch' in self.item['user_data'] else True

def buyMedia(self):
user = api.user()
Expand All @@ -30,7 +30,7 @@ def versionPicker(self)-> dict:
Return version that user selects
"""
versions_api = self.item['versions']['data']
# Excluse offline versions
# Exclude offline versions
versions_filtered = list(filter(lambda version: not version['offline'], versions_api))
versions_show = []
for version_temp in versions_filtered:
Expand Down

0 comments on commit 992a63e

Please sign in to comment.