Add some docs
This commit is contained in:
parent
077bd12d11
commit
8ac44229df
@ -1,5 +1,9 @@
|
|||||||
API = "http://app01.luz01.feromedia.tv"
|
API = "http://app01.luz01.feromedia.tv"
|
||||||
|
|
||||||
|
# MatteBOX ID for NanguTV authentication.
|
||||||
PLATFORM_ID = "8a5eaad0e39a83621c25f20b0a10d721"
|
PLATFORM_ID = "8a5eaad0e39a83621c25f20b0a10d721"
|
||||||
|
|
||||||
|
# NanguTV Client ID and Client Secret.
|
||||||
|
# Probably your ISP but tested only with this single client.
|
||||||
CLIENT_ID = "feromedia-mobile"
|
CLIENT_ID = "feromedia-mobile"
|
||||||
CLIENT_SECRET = "4SbnLL2BdBmbQ94qdPa2N0kF7Xv4fJzo"
|
CLIENT_SECRET = "4SbnLL2BdBmbQ94qdPa2N0kF7Xv4fJzo"
|
||||||
|
@ -2,4 +2,6 @@ from time import time
|
|||||||
|
|
||||||
|
|
||||||
def now_timestamp() -> int:
|
def now_timestamp() -> int:
|
||||||
|
"""Return current timestamp in milliseconds (ms)."""
|
||||||
|
|
||||||
return int(time() * 1000)
|
return int(time() * 1000)
|
||||||
|
@ -2,6 +2,11 @@ from __future__ import annotations
|
|||||||
|
|
||||||
|
|
||||||
class Program:
|
class Program:
|
||||||
|
"""Class for single TV program or recording with basic information about it.
|
||||||
|
|
||||||
|
Methods `from_channel_program` and `from_recording` returns class object
|
||||||
|
from data received from API."""
|
||||||
|
|
||||||
name: str
|
name: str
|
||||||
channel: str
|
channel: str
|
||||||
epg_id: str
|
epg_id: str
|
||||||
|
Loading…
x
Reference in New Issue
Block a user