From 564a27461d6ab020c4bf83ea5101958d74febda2 Mon Sep 17 00:00:00 2001 From: mano3m <-> Date: Sun, 14 Jul 2013 23:30:37 +0200 Subject: [PATCH] XBMC: Only add directory if XBMC is on localhost --- couchpotato/core/notifications/xbmc/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/notifications/xbmc/main.py b/couchpotato/core/notifications/xbmc/main.py index b1ad57a1..7266b25c 100755 --- a/couchpotato/core/notifications/xbmc/main.py +++ b/couchpotato/core/notifications/xbmc/main.py @@ -34,7 +34,7 @@ class XBMC(Notification): ] if not self.conf('only_first') or hosts.index(host) == 0: - calls.append(('VideoLibrary.Scan', {'directory': data.get('destination_dir', None)})) + calls.append(('VideoLibrary.Scan', {'directory': data.get('destination_dir', None)} if 'localhost' in host else {})) max_successful += len(calls) response = self.request(host, calls)