trigger fs scan after changing path, move folder if new path does not exist, fixes #214

This commit is contained in:
j 2016-01-27 11:58:11 +05:30
commit e27e429fd6
3 changed files with 25 additions and 4 deletions

View file

@ -29,7 +29,9 @@ class Tasks(Thread):
try:
action, data = m
logger.debug('%s start', action)
if action == 'export':
if action == 'changelibrarypath':
item.scan.change_path(data[0], data[1])
elif action == 'export':
export_list(data)
elif action == 'getpreview':
get_preview(data)