summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/constants.py
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-01-17 22:08:39 +0100
committerRobert Honz <exislow+github@gmail.com>2024-01-17 22:08:39 +0100
commit62c75e6c972eed4aadaba3dd03e60d63c31eb995 (patch)
treee71f22c5757a0e81cf157016d8f9de26234054f3 /tidal_dl_ng/constants.py
parentbdccb8be37fd941cd5c681950a7e25085efbabb0 (diff)
downloadtidal-dl-ng-62c75e6c972eed4aadaba3dd03e60d63c31eb995.tar.gz
✨ File extension stored in an enum. File exists check refactored to explicit extension check.
Diffstat (limited to 'tidal_dl_ng/constants.py')
-rw-r--r--tidal_dl_ng/constants.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/tidal_dl_ng/constants.py b/tidal_dl_ng/constants.py
index 940b2dc..e6dcd1c 100644
--- a/tidal_dl_ng/constants.py
+++ b/tidal_dl_ng/constants.py
@@ -38,6 +38,16 @@ class CoverDimensions(Enum):
class TidalLists(Enum):
- PLAYLISTS = "Playlists"
- FAVORITES = "Favorites"
- MIXES = "Mixes"
+ PLAYLISTS: str = "Playlists"
+ FAVORITES: str = "Favorites"
+ MIXES: str = "Mixes"
+
+
+class AudioExtensions(Enum):
+ FLAC = ".flac"
+ M4A = ".m4a"
+ MP4 = ".mp4"
+
+
+class MediaExtensions(AudioExtensions):
+ TS = ".ts"