XBMC: Only add directory if XBMC is on localhost

This commit is contained in:
mano3m
2013-07-14 23:30:37 +02:00
parent 4ebbc1a01d
commit 564a27461d
+1 -1
View File
@@ -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)