Files
tidal-dl/tidal_dl_ng/constants.py
T

52 lines
1.0 KiB
Python
Raw Normal View History

2024-04-02 16:26:57 +02:00
from enum import IntEnum, StrEnum
2023-12-19 23:58:57 +01:00
CTX_TIDAL: str = "tidal"
REQUESTS_TIMEOUT_SEC: int = 45
EXTENSION_LYRICS: str = ".lrc"
UNIQUIFY_THRESHOLD: int = 99
FILENAME_SANITIZE_PLACEHOLDER: str = "_"
2023-12-19 23:58:57 +01:00
2024-04-02 16:26:57 +02:00
class QualityVideo(IntEnum):
P360: int = 360
P480: int = 480
P720: int = 720
P1080: int = 1080
2023-12-19 23:58:57 +01:00
2024-04-02 16:16:38 +02:00
class MediaType(StrEnum):
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
2024-04-02 16:16:38 +02:00
class SkipExisting(StrEnum):
2024-04-02 16:26:57 +02:00
Disabled: str = "False"
Filename: str = "exact"
ExtensionIgnore: str = "extension_ignore"
Append: str = "append"
2024-01-13 16:26:33 +01:00
2024-04-02 16:26:57 +02:00
class CoverDimensions(IntEnum):
2024-03-25 16:53:27 +01:00
Px80: int = 80
Px160: int = 160
Px320: int = 320
Px640: int = 640
Px1280: int = 1280
2024-04-02 16:16:38 +02:00
class TidalLists(StrEnum):
Playlists: str = "Playlists"
Favorites: str = "Favorites"
Mixes: str = "Mixes"
2024-04-02 16:16:38 +02:00
class QueueDownloadStatus(StrEnum):
Waiting: str = "⏳️"
Downloading: str = "▶️"
Finished: str = "✅"
Failed: str = "❌"
Skipped: str = "↪️"