summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/metadata.py
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-03-25 16:53:27 +0100
committerRobert Honz <exislow+github@gmail.com>2024-03-25 16:53:27 +0100
commitf7361b307853999385452c5d801a4d132076c008 (patch)
treed42d5091d6110a97837b30f7c8605284599728ea /tidal_dl_ng/metadata.py
parent453205bf48d45e7abeed91671375a8d602343684 (diff)
downloadtidal-dl-ng-f7361b307853999385452c5d801a4d132076c008.tar.gz
✨ Use `Album.image()` to get cover url.
Diffstat (limited to 'tidal_dl_ng/metadata.py')
-rw-r--r--tidal_dl_ng/metadata.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tidal_dl_ng/metadata.py b/tidal_dl_ng/metadata.py
index 4506742..35029f8 100644
--- a/tidal_dl_ng/metadata.py
+++ b/tidal_dl_ng/metadata.py
@@ -142,7 +142,8 @@ class Metadata:
self.m.tags["\xa9wrt"] = ", ".join(self.composer) if self.composer else ""
self.m.tags["\xa9lyr"] = self.lyrics
- def cover_data(self, url: str = None, path_file: str = None) -> str | bytes:
+ @staticmethod
+ def cover_data(url: str = None, path_file: str = None) -> str | bytes:
result: str | bytes = ""
if url: