♻️ Removed unnecessary threading and refactored values to constants.
This commit is contained in:
+24
-18
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user