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
This commit is contained in:
Gilbert Paquin
2022-09-23 16:37:04 -04:00
parent 7f1afb27f1
commit 0c83717469

View File

@@ -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()))