diff --git a/TIDALDL-PY/exe/tidal-dl.exe b/TIDALDL-PY/exe/tidal-dl.exe index 03609502..b86535b7 100644 Binary files a/TIDALDL-PY/exe/tidal-dl.exe and b/TIDALDL-PY/exe/tidal-dl.exe differ diff --git a/TIDALDL-PY/setup.py b/TIDALDL-PY/setup.py index 302c73a3..f0e9ff18 100644 --- a/TIDALDL-PY/setup.py +++ b/TIDALDL-PY/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages setup( name = 'tidal-dl', - version="2020.3.10.0", + version="2020.3.11.0", license="Apache2", description = "Tidal Music Download.", diff --git a/TIDALDL-PY/tidal_dl/__init__.py b/TIDALDL-PY/tidal_dl/__init__.py index 9c463a50..4d2f37a0 100644 --- a/TIDALDL-PY/tidal_dl/__init__.py +++ b/TIDALDL-PY/tidal_dl/__init__.py @@ -11,7 +11,7 @@ from tidal_dl.download import Download from tidal_dl.printhelper import printMenu, printChoice2, printErr, printWarring, LOG -TIDAL_DL_VERSION = "2020.3.10.0" +TIDAL_DL_VERSION = "2020.3.11.0" def logIn(username="", password=""): diff --git a/TIDALDL-PY/tidal_dl/tidal.py b/TIDALDL-PY/tidal_dl/tidal.py index 0b1af69b..5281315c 100644 --- a/TIDALDL-PY/tidal_dl/tidal.py +++ b/TIDALDL-PY/tidal_dl/tidal.py @@ -44,7 +44,7 @@ def _get(self, url, params={}): retry = 3 sessionid = self.config.sessionid if 'soundQuality' in params: - if params['soundQuality'] == 'LOSSLESS' or params['soundQuality'] == 'DOLBY_ATMOS': + if params['soundQuality'] == 'LOSSLESS': sessionid = self.config.sessionid2 while retry > 0: @@ -58,6 +58,9 @@ def _get(self, url, params={}): params=params).json() if 'status' in resp and resp['status'] == 404 and resp['subStatus'] == 2001: self.errmsg = '{}. This might be region-locked.'.format(resp['userMessage']) + elif 'status' in resp and resp['status'] == 401 and resp['subStatus'] == 4005: #'Asset is not ready for playback' + sessionid = self.config.sessionid2 + continue elif 'status' in resp and not resp['status'] == 200: self.errmsg = '{}. Get operation err!'.format(resp['userMessage']) # self.errmsg = "Get operation err!" diff --git a/TIDALDL-PY/updatelog.md b/TIDALDL-PY/updatelog.md index 435379b9..d4e1f984 100644 --- a/TIDALDL-PY/updatelog.md +++ b/TIDALDL-PY/updatelog.md @@ -1,3 +1,6 @@ +#### 2020-03-11 +- Fix bug of 'Asset is not ready for playback' + #### 2020-03-10 - Update token diff --git a/TIDALDL-UI/TIDALDL-UI/Pages/AboutView.xaml b/TIDALDL-UI/TIDALDL-UI/Pages/AboutView.xaml index 4fbcec4d..885296c4 100644 --- a/TIDALDL-UI/TIDALDL-UI/Pages/AboutView.xaml +++ b/TIDALDL-UI/TIDALDL-UI/Pages/AboutView.xaml @@ -28,7 +28,7 @@