added default values to helper classes
This commit is contained in:
parent
9d526cd79c
commit
c7c7e34bfe
3 changed files with 48 additions and 32 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -11,3 +11,4 @@ __pycache__
|
||||||
GeoLite2-City.mmdb
|
GeoLite2-City.mmdb
|
||||||
GeoLite2-City.tar.gz
|
GeoLite2-City.tar.gz
|
||||||
.idea/
|
.idea/
|
||||||
|
Varken/varken.ini
|
||||||
|
|
0
Varken/__init__.py
Normal file
0
Varken/__init__.py
Normal file
|
@ -2,41 +2,56 @@ from typing import NamedTuple
|
||||||
|
|
||||||
|
|
||||||
class TVShow(NamedTuple):
|
class TVShow(NamedTuple):
|
||||||
seriesId: int
|
seriesId: int = None
|
||||||
episodeFileId: int
|
episodeFileId: int = None
|
||||||
seasonNumber: int
|
seasonNumber: int = None
|
||||||
episodeNumber: int
|
episodeNumber: int = None
|
||||||
title: str
|
title: str = None
|
||||||
airDate: str
|
airDate: str = None
|
||||||
airDateUtc: str
|
airDateUtc: str = None
|
||||||
overview: str
|
overview: str = None
|
||||||
episodeFile: dict
|
episodeFile: dict = None
|
||||||
hasFile: bool
|
hasFile: bool = None
|
||||||
monitored: bool
|
monitored: bool = None
|
||||||
unverifiedSceneNumbering: bool
|
unverifiedSceneNumbering: bool = None
|
||||||
absoluteEpisodeNumber: int
|
absoluteEpisodeNumber: int = None
|
||||||
series: dict
|
series: dict = None
|
||||||
id: int
|
id: int = None
|
||||||
|
|
||||||
|
|
||||||
class Queue(NamedTuple):
|
class Queue(NamedTuple):
|
||||||
series: dict
|
series: dict = None
|
||||||
episode: dict
|
episode: dict = None
|
||||||
quality: dict
|
quality: dict = None
|
||||||
size: float
|
size: float = None
|
||||||
title: str
|
title: str = None
|
||||||
sizeleft: float
|
sizeleft: float = None
|
||||||
timeleft: str
|
timeleft: str = None
|
||||||
estimatedCompletionTime: str
|
estimatedCompletionTime: str = None
|
||||||
status: str
|
status: str = None
|
||||||
trackedDownloadStatus: str
|
trackedDownloadStatus: str = None
|
||||||
statusMessages: list
|
statusMessages: list = None
|
||||||
downloadId: str
|
downloadId: str = None
|
||||||
protocol: str
|
protocol: str = None
|
||||||
id: int
|
id: int = None
|
||||||
|
|
||||||
|
|
||||||
class Server(NamedTuple):
|
class Server(NamedTuple):
|
||||||
url: str
|
id: int = None
|
||||||
api_key: str
|
url: str = None
|
||||||
id: int
|
api_key: str = None
|
||||||
|
verify_ssl: bool = False
|
||||||
|
|
||||||
|
|
||||||
|
class TautulliServer(NamedTuple):
|
||||||
|
url: str = None
|
||||||
|
fallback_ip: str = None
|
||||||
|
apikey: str = None
|
||||||
|
verify_ssl: bool = None
|
||||||
|
influx_db: str = None
|
||||||
|
|
||||||
|
class InfluxServer(NamedTuple):
|
||||||
|
url: str = 'localhost'
|
||||||
|
port: int = 8086
|
||||||
|
username: str = 'root'
|
||||||
|
password: str = 'root'
|
Loading…
Add table
Add a link
Reference in a new issue