Browse Source

XBMC: Only add directory if XBMC is on localhost

pull/1944/head
mano3m 12 years ago
parent
commit
564a27461d
  1. 2
      couchpotato/core/notifications/xbmc/main.py

2
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)

Loading…
Cancel
Save