[Notifications][XBMC] Add always do a full scan option to XBMC
Fixes #2498 (at least partially)
This commit is contained in:
1 parent
f0bde7316d
commit
4553726423
2 files changed
+9
-1
No files matched your search
@@ -46,6 +46,14 @@ config = [{
|
|||||||
'advanced': True,
|
'advanced': True,
|
||||||
'description': 'Only scan new movie folder at remote XBMC servers. Works if movie location is the same.',
|
'description': 'Only scan new movie folder at remote XBMC servers. Works if movie location is the same.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'name': 'force_full_scan',
|
||||||
|
'label': 'Always do a full scan',
|
||||||
|
'default': 0,
|
||||||
|
'type': 'bool',
|
||||||
|
'advanced': True,
|
||||||
|
'description': 'Do a full scan instead of only the new movie. Useful if the XBMC path is different from the path CPS uses.',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'name': 'on_snatch',
|
'name': 'on_snatch',
|
||||||
'default': 0,
|
'default': 0,
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ class XBMC(Notification):
|
|||||||
|
|
||||||
if data and data.get('destination_dir') and (not self.conf('only_first') or hosts.index(host) == 0):
|
if data and data.get('destination_dir') and (not self.conf('only_first') or hosts.index(host) == 0):
|
||||||
param = {}
|
param = {}
|
||||||
if self.conf('remote_dir_scan') or socket.getfqdn('localhost') == socket.getfqdn(host.split(':')[0]):
|
if not self.conf('force_full_scan') and (self.conf('remote_dir_scan') or socket.getfqdn('localhost') == socket.getfqdn(host.split(':')[0])):
|
||||||
param = {'directory': data['destination_dir']}
|
param = {'directory': data['destination_dir']}
|
||||||
|
|
||||||
calls.append(('VideoLibrary.Scan', param))
|
calls.append(('VideoLibrary.Scan', param))
|
||||||
|
|||||||
Reference in new issue
Block a user