info might be empty
This commit is contained in:
parent
988d030f92
commit
1c2ef33353
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ def sync_db():
|
|||
first = False
|
||||
logger.debug('sync items')
|
||||
i.update(commit=False)
|
||||
if i.info['mediastate'] == 'unavailable' and state.tasks:
|
||||
if i.info.get('mediastate') == 'unavailable' and state.tasks:
|
||||
state.tasks.queue('getpreview', i.id)
|
||||
commit = True
|
||||
#logger.debug('sync:%s', i)
|
||||
|
|
Loading…
Reference in a new issue