Skip to content

Commit

Permalink
comply with PEP and disabled sync
Browse files Browse the repository at this point in the history
  • Loading branch information
pablouser1 committed Jan 2, 2024
1 parent bf0d962 commit 362b0e5
Show file tree
Hide file tree
Showing 60 changed files with 1,393 additions and 854 deletions.
22 changes: 5 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,13 @@ Descarga el archivo .zip generado por Github e instálalo.
* Colecciones
* Watching
* Listas de reproducción
* Sincronizar progreso de visionado con Filmin
* Sincronizar progreso de visionado con Filmin (Roto por ahora)
* Soporte para Portugal y México
* Watch Later

### Prioridades
* Integración con Up Next
* Festivales
* Ordenar

## Desarrollo
### Reversing
#### Static
Todos los tokens `CLIENT_ID` y `CLIENT_ID_SECRET` se encontraron decompilando la aplicación de Android.

Personalmente uso [**jadx**](https://github.com/skylot/jadx) para la decompilación.

#### Runtime
Gran parte de los endpoints del archivo `api.py` se han encontrado interceptando las peticiones HTTPS de la aplicación de Android

El setup que uso personalmente es:
- [**mitmproxy**](https://mitmproxy.org), para interceptar las solicitudes
- [**MagiskTrustCert**](https://github.com/NVISOsecurity/MagiskTrustUserCerts), módulo de [Magisk](https://github.com/topjohnwu/Magisk) para el tráfico HTTPS
* Paginación
* Adaptar más métodos de `api.py` a la nueva uapi
* Migrar de `ListItem` a `InfoTagVideo`
* Arreglar la sincronización con Filmin
2 changes: 2 additions & 0 deletions addon.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
""" Runner """

from resources.lib.app import run

run()
22 changes: 15 additions & 7 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.4" provider-name="pablouser1">
<addon id="plugin.video.filmin" name="Filmin" version="1.7.0" 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 @@ -9,18 +9,26 @@
<provides>video</provides>
</extension>
<extension point="xbmc.addon.metadata">
<!-- English -->
<summary lang="en_GB">Use Filmin on Kodi</summary>
<description lang="en_GB">NON-OFFICIAL client for watching content of Filmin</description>
<description lang="en_GB">Client to watch Filmin content</description>
<disclaimer lang="en_GB">Unofficial client, created by and for the community</disclaimer>
<!-- Spanish -->
<summary lang="es_ES">Utiliza Filmin en Kodi</summary>
<description lang="es_ES">Cliente NO OFICIAL para visualizar contenido de Filmin</description>
<language>es</language>
<description lang="es_ES">Cliente para visualizar contenido de Filmin</description>
<disclaimer lang="es_ES">Cliente no oficial, creado por y para la comunidad</disclaimer>
<!-- Common -->
<language>es pt</language>
<platform>all</platform>
<license>GPL-3.0-or-later</license>
<website>https://github.com/pablouser1/plugin.video.filmin</website>
<website>https://filmin.com</website>
<source>https://github.com/pablouser1/plugin.video.filmin</source>
<news>
v1.6.4 (28/12/2023)
Ver después y mejor arte
v1.7.0 (02/01/2024)
- Sincronización con Filmin deshabilitada temporalmente
- Refactoring del código siguiendo los estándares PEP
- enums convertidos a enums del standard lib
- Config renombrado a Settings, junto con la global config
</news>
<assets>
<icon>resources/icon.png</icon>
Expand Down
8 changes: 4 additions & 4 deletions resources/language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ msgid "Region"
msgstr "Region"

msgctxt "#40003"
msgid "Allow syncing with Filmin"
msgstr "Allow syncing with Filmin"
msgid "Allow syncing with Filmin (BROKEN, IGNORED FOR NOW)"
msgstr "Allow syncing with Filmin (BROKEN, IGNORED FOR NOW)"

msgctxt "#40004"
msgid "Allow using tickets"
Expand Down Expand Up @@ -175,8 +175,8 @@ msgid "Tickets"
msgstr "Tickets"

msgctxt "#40051"
msgid "This content is not avaiable. Do you want to rent it using a ticket? You have %d tickets left"
msgstr "This content is not avaiable. Do you want to rent it using a ticket? You have %d tickets left"
msgid "This content is not available. Do you want to rent it using a ticket? You have %d tickets left"
msgstr "This content is not available. Do you want to rent it using a ticket? You have %d tickets left"

msgctxt "#40052"
msgid "Choose a version"
Expand Down
4 changes: 2 additions & 2 deletions resources/language/resource.language.es_es/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ msgstr "Región"

msgctxt "#40003"
msgid "Allow syncing with Filmin"
msgstr "Permitir sincronización de visionado con Filmin"
msgstr "Permitir sincronización de visionado con Filmin (ROTO, IGNORADO POR AHORA)"

msgctxt "#40004"
msgid "Allow using tickets"
Expand Down Expand Up @@ -175,7 +175,7 @@ msgid "Tickets"
msgstr "Tickets"

msgctxt "#40051"
msgid "This content is not avaiable. Do you want to rent it using a ticket? You have %d tickets left"
msgid "This content is not available. Do you want to rent it using a ticket? You have %d tickets left"
msgstr "Este contenido no está disponible. ¿Quieres alquilarlo usando un ticket? Tienes %d tickets restantes"

msgctxt "#40052"
Expand Down
Loading

0 comments on commit 362b0e5

Please sign in to comment.