diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-01-16 06:32:00 +0100 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-01-16 06:32:00 +0100 |
| commit | f61d7e6d2e6fe4b0613b819f2b50cf7763930ce7 (patch) | |
| tree | d56e94137f369c9abc9759ca0d1e32342331cb6c /tidal_dl_ng/constants.py | |
| parent | 76b007c2bb47d78a116573792ec6dfc2402f91b8 (diff) | |
| download | tidal-dl-ng-f61d7e6d2e6fe4b0613b819f2b50cf7763930ce7.tar.gz | |
♻️ Removed unnecessary threading and refactored values to constants.
Diffstat (limited to 'tidal_dl_ng/constants.py')
| -rw-r--r-- | tidal_dl_ng/constants.py | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/tidal_dl_ng/constants.py b/tidal_dl_ng/constants.py index ad9bcca..20a2c49 100644 --- a/tidal_dl_ng/constants.py +++ b/tidal_dl_ng/constants.py @@ -5,33 +5,39 @@ REQUESTS_TIMEOUT_SEC = 45 class QualityVideo(Enum): - P360 = 360 - P480 = 480 - P720 = 720 - P1080 = 1080 + P360: int = 360 + P480: int = 480 + P720: int = 720 + P1080: int = 1080 class MediaType(Enum): - Track = "track" - Video = "video" - Playlist = "playlist" - Album = "album" - Mix = "mix" + Track: str = "track" + Video: str = "video" + Playlist: str = "playlist" + Album: str = "album" + Mix: str = "mix" class SkipExisting(Enum): - Disabled = False - Filename = "exact" - ExtensionIgnore = "extension_ignore" + Disabled: bool = False + Filename: str = "exact" + ExtensionIgnore: str = "extension_ignore" class StreamManifestMimeType(Enum): - MPD = "application/dash+xml" - BTS = "application/vnd.tidal.bts" - VIDEO = "video/mp2t" + MPD: str = "application/dash+xml" + BTS: str = "application/vnd.tidal.bts" + VIDEO: str = "video/mp2t" class CoverDimensions(Enum): - Px320 = "320x320" - Px640 = "640x640" - Px1280 = "1280x1280" + Px320: str = "320x320" + Px640: str = "640x640" + Px1280: str = "1280x1280" + + +class TidalLists(Enum): + PLAYLISTS = "Playlists" + FAVORITES = "Favorites" + MIXES = "Mixes" |
