summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-01-12 12:35:18 +0100
committerRobert Honz <exislow+github@gmail.com>2024-01-12 12:35:18 +0100
commit1c51affef4ef80665ad496c46e73acc8d979dad9 (patch)
treec6dbeae98ec42d683d5c22998452dbc92fc9343c
parent9472e40fda60fe226efa8ed1123eeeede831acb2 (diff)
downloadtidal-dl-ng-1c51affef4ef80665ad496c46e73acc8d979dad9.tar.gz
♻️ Ruff refactoring.
-rw-r--r--tidal_dl_ng/cli.py1
-rw-r--r--tidal_dl_ng/metadata.py6
2 files changed, 3 insertions, 4 deletions
diff --git a/tidal_dl_ng/cli.py b/tidal_dl_ng/cli.py
index 20caafa..f5704b8 100644
--- a/tidal_dl_ng/cli.py
+++ b/tidal_dl_ng/cli.py
@@ -177,7 +177,6 @@ def download(
fn_logger=fn_logger,
)
elif media_name in ["album", "playlist", "mix"]:
- # TODO: Handle mixes.
file_template: str | bool = False
if media_name == "album":
diff --git a/tidal_dl_ng/metadata.py b/tidal_dl_ng/metadata.py
index 44ec57e..f23c41d 100644
--- a/tidal_dl_ng/metadata.py
+++ b/tidal_dl_ng/metadata.py
@@ -167,8 +167,8 @@ class Metadata:
try:
with open(path_file, "rb") as f:
result = f.read()
- except OSError:
- # TODO: Implement logging.
- pass
+ except OSError as e:
+ # TODO: Implement propper logging.
+ print(e)
return result