mirror of
https://github.com/yaronzz/Tidal-Media-Downloader.git
synced 2026-06-13 04:05:07 +03:00
Merge pull request #1003 from Zibbp/master
fix(cover): return if no cover found
This commit is contained in:
@@ -335,6 +335,8 @@ class TidalAPI(object):
|
|||||||
return self.__get__(f'tracks/{str(id)}/contributors')
|
return self.__get__(f'tracks/{str(id)}/contributors')
|
||||||
|
|
||||||
def getCoverUrl(self, sid, width="320", height="320"):
|
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"
|
return f"https://resources.tidal.com/images/{sid.replace('-', '/')}/{width}x{height}.jpg"
|
||||||
|
|
||||||
def getCoverData(self, sid, width="320", height="320"):
|
def getCoverData(self, sid, width="320", height="320"):
|
||||||
|
|||||||
Reference in New Issue
Block a user