From f5a6531386eaf1e6b641ba4b7fefb6fb1366c650 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Thu, 28 Dec 2017 18:29:51 +0100 Subject: [PATCH] Fix typos --- resources/lib/companion.py | 2 +- resources/lib/playbackutils.py | 2 +- resources/lib/playlist_func.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/lib/companion.py b/resources/lib/companion.py index 19f78fa9..bb7992f0 100644 --- a/resources/lib/companion.py +++ b/resources/lib/companion.py @@ -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') diff --git a/resources/lib/playbackutils.py b/resources/lib/playbackutils.py index 6ff63e09..0fc5f618 100644 --- a/resources/lib/playbackutils.py +++ b/resources/lib/playbackutils.py @@ -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): diff --git a/resources/lib/playlist_func.py b/resources/lib/playlist_func.py index 7575d839..f2fe8b34 100644 --- a/resources/lib/playlist_func.py +++ b/resources/lib/playlist_func.py @@ -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):