Remove obsolete playlistitem attribute
This commit is contained in:
parent
48dc22ee35
commit
35536fdc2f
2 changed files with 0 additions and 11 deletions
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue