Files
tidal-dl/tidal_dl_ng/constants.py
T

52 lines
1.0 KiB
Python
Raw Normal View History

2024-04-20 17:29:42 +02:00
from enum import 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-20 17:29:42 +02:00
class QualityVideo(StrEnum):
P360: str = "360"
P480: str = "480"
P720: str = "720"
P1080: str = "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-20 17:29:42 +02:00
class CoverDimensions(StrEnum):
Px80: str = "80"
Px160: str = "160"
Px320: str = "320"
Px640: str = "640"
Px1280: str = "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 = "↪️"