summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/constants.py
blob: 1348a7440e8b1987c7a1ac6e8d89f41fc0fdff4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from enum import Enum

CTX_TIDAL: str = "tidal"
REQUESTS_TIMEOUT_SEC = 45
EXTENSION_LYRICS = ".lrc"


class QualityVideo(Enum):
    P360: int = 360
    P480: int = 480
    P720: int = 720
    P1080: int = 1080


class MediaType(Enum):
    TRACK: str = "track"
    VIDEO: str = "video"
    PLAYLIST: str = "playlist"
    ALBUM: str = "album"
    MIX: str = "mix"


class SkipExisting(Enum):
    Disabled: bool = False
    Filename: str = "exact"
    ExtensionIgnore: str = "extension_ignore"


class StreamManifestMimeType(Enum):
    MPD: str = "application/dash+xml"
    BTS: str = "application/vnd.tidal.bts"
    VIDEO: str = "video/mp2t"


class CoverDimensions(Enum):
    Px320: str = "320x320"
    Px640: str = "640x640"
    Px1280: str = "1280x1280"


class TidalLists(Enum):
    PLAYLISTS: str = "Playlists"
    FAVORITES: str = "Favorites"
    MIXES: str = "Mixes"


class AudioExtensions(Enum):
    FLAC = ".flac"
    M4A = ".m4a"
    MP4 = ".mp4"


class VideoExtensions(Enum):
    TS = ".ts"