Merge pull request #1003 from Zibbp/master

fix(cover): return if no cover found
This commit is contained in:
Yaronzz
2022-10-31 13:37:45 +08:00
committed by GitHub
+2
View File
@@ -335,6 +335,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"):