From 83029b75603c6d788aaef6eebbca9fa17b410c68 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sat, 17 Sep 2016 09:55:06 +0200 Subject: [PATCH] Shorten for loop --- resources/lib/librarysync.py | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index d342582f..868fcd4a 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -318,6 +318,7 @@ class ProcessFanartThread(Thread): for key, value in allartworks.iteritems(): if not value and not key == 'BoxRear': needsupdate = True + break if needsupdate is False: log.debug('Already got all art for Plex id %s' % item['itemId'])