Merge pull request #934 from croneter/fix-attributeerror
Fix AttributeError: 'NoneType' object has no attribute 'attrib' on playback startup
This commit is contained in:
commit
10b01a7aec
1 changed files with 3 additions and 2 deletions
|
@ -234,13 +234,14 @@ def _playback_init(plex_id, plex_type, playqueue, pos):
|
||||||
playqueue.clear()
|
playqueue.clear()
|
||||||
if plex_type != v.PLEX_TYPE_CLIP:
|
if plex_type != v.PLEX_TYPE_CLIP:
|
||||||
# Post to the PMS to create a playqueue - in any case due to Companion
|
# Post to the PMS to create a playqueue - in any case due to Companion
|
||||||
|
section_uuid = xml.attrib.get('librarySectionUUID')
|
||||||
xml = PF.init_plex_playqueue(plex_id,
|
xml = PF.init_plex_playqueue(plex_id,
|
||||||
xml.attrib.get('librarySectionUUID'),
|
section_uuid,
|
||||||
mediatype=plex_type,
|
mediatype=plex_type,
|
||||||
trailers=trailers)
|
trailers=trailers)
|
||||||
if xml is None:
|
if xml is None:
|
||||||
LOG.error('Could not get a playqueue xml for plex id %s, UUID %s',
|
LOG.error('Could not get a playqueue xml for plex id %s, UUID %s',
|
||||||
plex_id, xml.attrib.get('librarySectionUUID'))
|
plex_id, section_uuid)
|
||||||
# "Play error"
|
# "Play error"
|
||||||
utils.dialog('notification',
|
utils.dialog('notification',
|
||||||
utils.lang(29999),
|
utils.lang(29999),
|
||||||
|
|
Loading…
Reference in a new issue