From 62c75e6c972eed4aadaba3dd03e60d63c31eb995 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Wed, 17 Jan 2024 22:08:39 +0100 Subject: ✨ File extension stored in an enum. File exists check refactored to explicit extension check. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/constants.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'tidal_dl_ng/constants.py') 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" -- cgit v1.3.1