Add some docs

This commit is contained in:
samedamci 2021-09-16 18:33:39 +02:00
parent 077bd12d11
commit 8ac44229df
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894
3 changed files with 11 additions and 0 deletions

View File

@ -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"

View File

@ -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)

View File

@ -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