From 0c83717469e332c27b67522cda08c5ba81acf2c2 Mon Sep 17 00:00:00 2001 From: Gilbert Paquin Date: Fri, 23 Sep 2022 16:37:04 -0400 Subject: [PATCH] Only take streamReady track This is when a track is still in the playlist and no longer on tidal, you can't play the song anymore through tidal Fix Issue #970 --- TIDALDL-PY/tidal_dl/tidal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TIDALDL-PY/tidal_dl/tidal.py b/TIDALDL-PY/tidal_dl/tidal.py index ec56b22..5f38c7d 100644 --- a/TIDALDL-PY/tidal_dl/tidal.py +++ b/TIDALDL-PY/tidal_dl/tidal.py @@ -269,7 +269,7 @@ class TidalAPI(object): tracks = [] videos = [] for item in data: - if item['type'] == 'track': + if item['type'] == 'track' and item['item']['streamReady']: tracks.append(aigpy.model.dictToModel(item['item'], Track())) else: videos.append(aigpy.model.dictToModel(item['item'], Video()))