summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/helper/url.py
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-01-14 23:09:43 +0100
committerRobert Honz <exislow+github@gmail.com>2024-01-14 23:09:43 +0100
commitec728d4dcd4741d307cf3c052c1b9ba3d4a7eb92 (patch)
tree74ed3d5c341392a703d984a4e052ddb62e153ca6 /tidal_dl_ng/helper/url.py
parentaffaae101e67fd2ee1aebc04b2ea1b551fe05d2f (diff)
downloadtidal-dl-ng-ec728d4dcd4741d307cf3c052c1b9ba3d4a7eb92.tar.gz
♻️ Refactored `download` for CLI.
Diffstat (limited to 'tidal_dl_ng/helper/url.py')
-rw-r--r--tidal_dl_ng/helper/url.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/tidal_dl_ng/helper/url.py b/tidal_dl_ng/helper/url.py
deleted file mode 100644
index 1e05474..0000000
--- a/tidal_dl_ng/helper/url.py
+++ /dev/null
@@ -1,15 +0,0 @@
-def get_tidal_media_id(url_or_id_media: str) -> str:
- id_dirty = url_or_id_media.rsplit("/", 1)[-1]
- id_media = id_dirty.rsplit("?", 1)[0]
-
- return id_media
-
-
-def get_tidal_media_type(url_media: str) -> str | bool:
- result = False
- url_split = url_media.split("/")[-2]
-
- if len(url_split) > 1:
- result = url_media.split("/")[-2]
-
- return result