2023-12-19 23:58:57 +01:00
|
|
|
from enum import Enum
|
|
|
|
|
|
|
|
|
|
CTX_TIDAL: str = "tidal"
|
2024-01-12 08:38:41 +01:00
|
|
|
REQUESTS_TIMEOUT_SEC = 45
|
2023-12-19 23:58:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class QualityVideo(Enum):
|
2024-01-16 06:32:00 +01:00
|
|
|
P360: int = 360
|
|
|
|
|
P480: int = 480
|
|
|
|
|
P720: int = 720
|
|
|
|
|
P1080: int = 1080
|
2023-12-19 23:58:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class MediaType(Enum):
|
2024-01-16 06:33:23 +01:00
|
|
|
TRACK: str = "track"
|
|
|
|
|
VIDEO: str = "video"
|
|
|
|
|
PLAYLIST: str = "playlist"
|
|
|
|
|
ALBUM: str = "album"
|
|
|
|
|
MIX: str = "mix"
|
2024-01-13 11:57:11 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class SkipExisting(Enum):
|
2024-01-16 06:32:00 +01:00
|
|
|
Disabled: bool = False
|
|
|
|
|
Filename: str = "exact"
|
|
|
|
|
ExtensionIgnore: str = "extension_ignore"
|
2024-01-13 16:26:33 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class StreamManifestMimeType(Enum):
|
2024-01-16 06:32:00 +01:00
|
|
|
MPD: str = "application/dash+xml"
|
|
|
|
|
BTS: str = "application/vnd.tidal.bts"
|
|
|
|
|
VIDEO: str = "video/mp2t"
|
2024-01-14 17:29:39 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class CoverDimensions(Enum):
|
2024-01-16 06:32:00 +01:00
|
|
|
Px320: str = "320x320"
|
|
|
|
|
Px640: str = "640x640"
|
|
|
|
|
Px1280: str = "1280x1280"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TidalLists(Enum):
|
2024-01-17 22:08:39 +01:00
|
|
|
PLAYLISTS: str = "Playlists"
|
|
|
|
|
FAVORITES: str = "Favorites"
|
|
|
|
|
MIXES: str = "Mixes"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AudioExtensions(Enum):
|
|
|
|
|
FLAC = ".flac"
|
|
|
|
|
M4A = ".m4a"
|
|
|
|
|
MP4 = ".mp4"
|
|
|
|
|
|
|
|
|
|
|
2024-01-17 22:18:48 +01:00
|
|
|
class VideoExtensions(Enum):
|
2024-01-17 22:08:39 +01:00
|
|
|
TS = ".ts"
|