palinek / pvr.sledovanitv.cz

Kodi's sledovanitv.cz client addon
GNU General Public License v2.0
30 stars 14 forks source link

Feature request: PIN kód #25

Closed MiloshCZ closed 4 years ago

MiloshCZ commented 5 years ago

Ahoj, měl bych prosbu. Bylo by možné přidat podporu pro PIN kód? Klidně do konfigurace pro trvalé zapnutí/vypnutí chráněných kanálů.

Vasek79 commented 5 years ago

Přidávám nějaké info k rodičovskému zámku. Původně jsem to psal k P. Rokosovi.

"Zamknutí" je na serverové straně. z klienta se musí odeslat PIN, který se nastaví v nastavení účtu na stránkách sledovanitv.cz obrazek

Originally posted by @Vasek79 in https://github.com/PepaRokos/pvr.sledovanitv/issues/15#issuecomment-464701328

Vasek79 commented 5 years ago

Přidávám debug log z Kodi.

leo_debug_log_locked.log

Je tam vidět, že přehrávači je při zamknutém rodičovském zámku předhozen soubor pin.ts - video s textem o odemknutí rodičovského zámku.

Ve webovém prohlížeči to při NEODEMKNUTÉM ZÁMKU vypadá nějak takhle: playback pinunlock

při ODEMKNUTÉM ZÁMKU je to takhe:

playback playlive

DanielKrasny commented 5 years ago

API volání pro odemknutí 18+ kanálů je:

https://sledovanitv.cz/api/pin-unlock?pin=0000&PHPSESSID=

Pokud si pamatuji, výstupem je totéž, co z volání playlist, ale pouze v případě, že máte ve své nabídce právě 18+ kanály.

Bohužel, sám takový balíček nemám a nemohu tedy otestovat, ani implementovat tuto možnost do PVR.

Vasek79 commented 4 years ago

Tak SledovaniTV zase dali do nabídky 18+ kanály, tak jsem to zkusil a bohužel odemknutí kanálů nefunguje.Neukáže se nic, kam by bylo možné zadat pin.

MiloshCZ commented 4 years ago

Našel jsem "workaround". Existuje plugin "Archiv SledovaniTV" https://www.xbmc-kodi.cz/prispevek-archiv-sledovanitv

palinek commented 4 years ago

Please, test #40 (note: installable packages can be found here https://jenkins.kodi.tv/blue/organizations/jenkins/palinek%2Fpvr.sledovanitv.cz/detail/pin_unlock/2/artifacts)

MiloshCZ commented 4 years ago

Builds are for Matrix or Leila version of Kodi?

palinek commented 4 years ago

Builds are for Matrix or Leila version of Kodi?

The PR aims to Matrix.

karel-un commented 4 years ago

Builds are for Matrix or Leila version of Kodi?

The PR aims to Matrix.

@palinek would you be so kind and backport this commit to Leia? Thanks.

palinek commented 4 years ago

would you be so kind and backport this commit to Leia? Thanks.

Here -> https://github.com/palinek/pvr.sledovanitv.cz/commit/c54fe018317d62c3da3c42a9a69b0d353fec8c81 , but note that I only applied the patch and tried if it compiles... no testing at all. (sorry, but I'm lacking free time to support multiple versions)

MiloshCZ commented 4 years ago

Tested on Kodi 32 bit. PIN ulock is OK, but there is wrong EPG info for locked channels. image image image

karel-un commented 4 years ago

would you be so kind and backport this commit to Leia? Thanks.

Here -> c54fe01 , but note that I only applied the patch and tried if it compiles... no testing at all. (sorry, but I'm lacking free time to support multiple versions)

I can confirm that PIN unlocking backported to v1.6.0 works on Kodi Leia 18.4, Raspberry 4, Raspbian Buster. EPG info is ok, I have not observed problems with EPG info as @MiloshCZ did.

EDIT: After some time there are few occurrences where EPG info of one channel is copied to another channel. Not for whole channel, just for one program item. Reboot doesnt help but changes error items.

Thanks @palinek !

jiripaskov commented 4 years ago

Please could you tell me how to install this modified addon into Kodi (coreelec - linux)? In the zip file is the addon itself or I must to create it somehow? Thank you.

karel-un commented 4 years ago

Please could you tell me how to install this modified addon into Kodi (coreelec - linux)? In the zip file is the addon itself or I must to create it somehow? Thank you.

Follow build instructions for branch Leia, but in step 2. replace

git clone --branch Leia https://github.com/palinek/pvr.sledovanitv.cz.git

with

git clone --branch Leia_pin https://github.com/palinek/pvr.sledovanitv.cz.git