From 94dac6c5b9d4ddc64a18fc426a12a1a3ca00bc17 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Sat, 20 Apr 2024 17:29:42 +0200 Subject: 👷 Legacy code cleanup due to `tidalapi` update. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/constants.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'tidal_dl_ng/constants.py') diff --git a/tidal_dl_ng/constants.py b/tidal_dl_ng/constants.py index 2c58e36..92664e4 100644 --- a/tidal_dl_ng/constants.py +++ b/tidal_dl_ng/constants.py @@ -1,4 +1,4 @@ -from enum import IntEnum, StrEnum +from enum import StrEnum CTX_TIDAL: str = "tidal" REQUESTS_TIMEOUT_SEC: int = 45 @@ -7,11 +7,11 @@ UNIQUIFY_THRESHOLD: int = 99 FILENAME_SANITIZE_PLACEHOLDER: str = "_" -class QualityVideo(IntEnum): - P360: int = 360 - P480: int = 480 - P720: int = 720 - P1080: int = 1080 +class QualityVideo(StrEnum): + P360: str = "360" + P480: str = "480" + P720: str = "720" + P1080: str = "1080" class MediaType(StrEnum): @@ -29,12 +29,12 @@ class SkipExisting(StrEnum): Append: str = "append" -class CoverDimensions(IntEnum): - Px80: int = 80 - Px160: int = 160 - Px320: int = 320 - Px640: int = 640 - Px1280: int = 1280 +class CoverDimensions(StrEnum): + Px80: str = "80" + Px160: str = "160" + Px320: str = "320" + Px640: str = "640" + Px1280: str = "1280" class TidalLists(StrEnum): -- cgit v1.3.1