summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/constants.py
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-04-20 17:29:42 +0200
committerRobert Honz <exislow+github@gmail.com>2024-04-20 17:29:42 +0200
commit94dac6c5b9d4ddc64a18fc426a12a1a3ca00bc17 (patch)
tree896e8931ae9ffb07328a172419fd4448dd352ac2 /tidal_dl_ng/constants.py
parent083d6604f77bfe0344a64a544ca97d213da159a3 (diff)
downloadtidal-dl-ng-94dac6c5b9d4ddc64a18fc426a12a1a3ca00bc17.tar.gz
👷 Legacy code cleanup due to `tidalapi` update.
Diffstat (limited to 'tidal_dl_ng/constants.py')
-rw-r--r--tidal_dl_ng/constants.py24
1 files changed, 12 insertions, 12 deletions
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):