mirror of
https://github.com/yaronzz/Tidal-Media-Downloader.git
synced 2026-01-16 16:04:25 -05:00
fix(cover): return if no cover found
This commit is contained in:
@@ -334,6 +334,8 @@ class TidalAPI(object):
|
||||
return self.__get__(f'tracks/{str(id)}/contributors')
|
||||
|
||||
def getCoverUrl(self, sid, width="320", height="320"):
|
||||
if sid is None:
|
||||
return ""
|
||||
return f"https://resources.tidal.com/images/{sid.replace('-', '/')}/{width}x{height}.jpg"
|
||||
|
||||
def getCoverData(self, sid, width="320", height="320"):
|
||||
|
||||
Reference in New Issue
Block a user