Fix typos
This commit is contained in:
parent
e358e9b3a5
commit
f5a6531386
3 changed files with 4 additions and 4 deletions
|
@ -32,7 +32,7 @@ def skip_to(params):
|
|||
for (player, _) in js.get_players().iteritems():
|
||||
playqueue = playqueues.get_playqueue_from_type(player)
|
||||
for i, item in enumerate(playqueue.items):
|
||||
if item.ID == playqueue_item_id or item.plex_id == plex_id:
|
||||
if item.id == playqueue_item_id or item.plex_id == plex_id:
|
||||
break
|
||||
else:
|
||||
LOG.debug('Item not found to skip to')
|
||||
|
|
|
@ -304,7 +304,7 @@ class PlaybackUtils():
|
|||
# Item not in Kodi DB
|
||||
self.add_trailer(item)
|
||||
if successful is True:
|
||||
self.playqueue.items[self.currentPosition - 1].ID = item.get(
|
||||
self.playqueue.items[self.currentPosition - 1].id = item.get(
|
||||
'%sItemID' % self.playqueue.kind)
|
||||
|
||||
def add_trailer(self, item):
|
||||
|
|
|
@ -296,7 +296,7 @@ def _get_playListVersion_from_xml(playlist, xml):
|
|||
def get_playlist_details_from_xml(playlist, xml):
|
||||
"""
|
||||
Takes a PMS xml as input and overwrites all the playlist's details, e.g.
|
||||
playlist.ID with the XML's playQueueID
|
||||
playlist.id with the XML's playQueueID
|
||||
"""
|
||||
try:
|
||||
playlist.id = xml.attrib['%sID' % playlist.kind]
|
||||
|
@ -456,7 +456,7 @@ def add_item_to_PMS_playlist(playlist, pos, plex_id=None, kodi_item=None):
|
|||
xml = DU().downloadUrl(url, action_type="PUT")
|
||||
try:
|
||||
item.xml = xml[-1]
|
||||
item.ID = xml[-1].attrib['%sItemID' % playlist.kind]
|
||||
item.id = xml[-1].attrib['%sItemID' % playlist.kind]
|
||||
except IndexError:
|
||||
LOG.info('Could not get playlist children. Adding a dummy')
|
||||
except (TypeError, AttributeError, KeyError):
|
||||
|
|
Loading…
Reference in a new issue