diff --git a/resources/lib/kodimonitor.py b/resources/lib/kodimonitor.py index c0fe71fc..b31f777b 100644 --- a/resources/lib/kodimonitor.py +++ b/resources/lib/kodimonitor.py @@ -247,8 +247,6 @@ class KodiMonitor(Monitor): kodi_item=data['item']) except PL.PlaylistError: pass - # Make sure that we won't re-add this item - # playqueue.old_kodi_pl = kodi_playqueue @LOCKER.lockthis def _playlist_onremove(self, data): @@ -264,13 +262,7 @@ class KodiMonitor(Monitor): if playqueue.is_kodi_onremove() is False: LOG.debug('PKC removed this item already from playqueue - ignoring') return - # Check whether we even need to update our known playqueue - kodi_playqueue = js.playlist_get_items(data['playlistid']) - if playqueue.old_kodi_pl == kodi_playqueue: - # We already know the latest playqueue - nothing to do - return PL.delete_playlist_item_from_PMS(playqueue, data['position']) - playqueue.old_kodi_pl = kodi_playqueue @LOCKER.lockthis def _playlist_onclear(self, data): diff --git a/resources/lib/playlist_func.py b/resources/lib/playlist_func.py index 58fb76cc..de004c9d 100644 --- a/resources/lib/playlist_func.py +++ b/resources/lib/playlist_func.py @@ -38,7 +38,6 @@ class PlaylistObjectBaseclase(object): self.type = None self.kodi_pl = None self.items = [] - self.old_kodi_pl = [] self.id = None self.version = None self.selectedItemID = None @@ -137,7 +136,6 @@ class PlaylistObjectBaseclase(object): self.kodi_onclear() self.kodi_pl.clear() # Clear Kodi playlist object self.items = [] - self.old_kodi_pl = [] self.id = None self.version = None self.selectedItemID = None @@ -163,7 +161,6 @@ class Playqueue_Object(PlaylistObjectBaseclase): type = None [str] Kodi type: 'audio', 'video', 'picture' kodi_pl = None Kodi xbmc.PlayList object items = [] [list] of Playlist_Items - old_kodi_pl = [] [list] store old Kodi JSON result with all pl items id = None [str] Plex playQueueID, unique Plex identifier version = None [int] Plex version of the playQueue selectedItemID = None