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():
|
for (player, _) in js.get_players().iteritems():
|
||||||
playqueue = playqueues.get_playqueue_from_type(player)
|
playqueue = playqueues.get_playqueue_from_type(player)
|
||||||
for i, item in enumerate(playqueue.items):
|
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
|
break
|
||||||
else:
|
else:
|
||||||
LOG.debug('Item not found to skip to')
|
LOG.debug('Item not found to skip to')
|
||||||
|
|
|
@ -304,7 +304,7 @@ class PlaybackUtils():
|
||||||
# Item not in Kodi DB
|
# Item not in Kodi DB
|
||||||
self.add_trailer(item)
|
self.add_trailer(item)
|
||||||
if successful is True:
|
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)
|
'%sItemID' % self.playqueue.kind)
|
||||||
|
|
||||||
def add_trailer(self, item):
|
def add_trailer(self, item):
|
||||||
|
|
|
@ -296,7 +296,7 @@ def _get_playListVersion_from_xml(playlist, xml):
|
||||||
def get_playlist_details_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.
|
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:
|
try:
|
||||||
playlist.id = xml.attrib['%sID' % playlist.kind]
|
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")
|
xml = DU().downloadUrl(url, action_type="PUT")
|
||||||
try:
|
try:
|
||||||
item.xml = xml[-1]
|
item.xml = xml[-1]
|
||||||
item.ID = xml[-1].attrib['%sItemID' % playlist.kind]
|
item.id = xml[-1].attrib['%sItemID' % playlist.kind]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
LOG.info('Could not get playlist children. Adding a dummy')
|
LOG.info('Could not get playlist children. Adding a dummy')
|
||||||
except (TypeError, AttributeError, KeyError):
|
except (TypeError, AttributeError, KeyError):
|
||||||
|
|
Loading…
Add table
Reference in a new issue