Added check for empty playlist
@@ -30,6 +30,7 @@ def updatePlexList(self, plex):
except (NotFound, BadRequest):
logging.error("Playlist %s not found, so it could not be deleted. Actual playlists: %s" % (self.name, plex.playlists()))
pass
+ if len(self.plex_movies) > 0:
plex.createPlaylist(self.name, items=self.plex_movies)
