X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Fwebserv.py;h=a0b899a3f624f82fdbc2f1b45f9e956574b82d9b;hb=61d5b735d5967d10447eb1c7a2f9fe683d9736bd;hp=ca6b1f095b9b2d6499c9a384ca73218a0f348338;hpb=af5f8a1cbde1e61ec1b44da676fae89c4358d184;p=mpd-sima.git diff --git a/sima/lib/webserv.py b/sima/lib/webserv.py index ca6b1f0..a0b899a 100644 --- a/sima/lib/webserv.py +++ b/sima/lib/webserv.py @@ -259,6 +259,8 @@ class WebService(AdvancedPlugin): continue nb_album_add += 1 candidates = self.player.find_tracks(album) + if not candidates: + continue if self.plugin_conf.getboolean('shuffle_album'): random.shuffle(candidates) # this allows to select a maximum number of track from the album