added subscript checking

This commit is contained in:
aj 2019-08-08 00:10:04 +01:00
parent ff6d2a9e25
commit b2d7c2c078

View File

@ -118,7 +118,7 @@ class Network:
else:
logger.warning(f'{playlistid} no response or items')
if resp['next']:
if resp.get('next', None):
tracks += self.get_playlist_tracks(playlistid, offset + limit)
return tracks