Companion: Fix AttributeError
This commit is contained in:
parent
6804fcf543
commit
88d1623909
1 changed files with 8 additions and 4 deletions
|
@ -156,10 +156,14 @@ class Playqueue(Thread):
|
||||||
# Chances are that we got an empty Kodi playlist due to
|
# Chances are that we got an empty Kodi playlist due to
|
||||||
# Kodi exit
|
# Kodi exit
|
||||||
return
|
return
|
||||||
if (old_item.file.startswith('plugin://') and
|
try:
|
||||||
not old_item['file'].startswith(PLUGIN)):
|
if (old_item.file.startswith('plugin://') and
|
||||||
# Ignore media by other addons
|
not old_item['file'].startswith(PLUGIN)):
|
||||||
continue
|
# Ignore media by other addons
|
||||||
|
continue
|
||||||
|
except AttributeError:
|
||||||
|
# were not passed a filename; ignore
|
||||||
|
pass
|
||||||
if new_item.get('id') is None:
|
if new_item.get('id') is None:
|
||||||
identical = old_item.file == new_item['file']
|
identical = old_item.file == new_item['file']
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue