Don't track the old playstate anymore

This commit is contained in:
croneter 2021-11-05 07:17:19 +01:00
parent 643f818ffd
commit 581b3d2536
2 changed files with 0 additions and 9 deletions

View file

@ -44,12 +44,6 @@ class PlayState(object):
1: {}, 1: {},
2: {} 2: {}
} }
# The LAST playstate once playback is finished
self.old_player_states = {
0: {},
1: {},
2: {}
}
self.played_info = {} self.played_info = {}
# Currently playing PKC item, a PlaylistItem() # Currently playing PKC item, a PlaylistItem()

View file

@ -34,7 +34,6 @@ class KodiMonitor(xbmc.Monitor):
xbmc.Monitor.__init__(self) xbmc.Monitor.__init__(self)
for playerid in app.PLAYSTATE.player_states: for playerid in app.PLAYSTATE.player_states:
app.PLAYSTATE.player_states[playerid] = copy.deepcopy(app.PLAYSTATE.template) app.PLAYSTATE.player_states[playerid] = copy.deepcopy(app.PLAYSTATE.template)
app.PLAYSTATE.old_player_states[playerid] = copy.deepcopy(app.PLAYSTATE.template)
LOG.info("Kodi monitor started.") LOG.info("Kodi monitor started.")
def onScanStarted(self, library): def onScanStarted(self, library):
@ -418,8 +417,6 @@ def _playback_cleanup(ended=False):
app.CONN.plex_transient_token = None app.CONN.plex_transient_token = None
for playerid in app.PLAYSTATE.active_players: for playerid in app.PLAYSTATE.active_players:
status = app.PLAYSTATE.player_states[playerid] status = app.PLAYSTATE.player_states[playerid]
# Remember the last played item later
app.PLAYSTATE.old_player_states[playerid] = copy.deepcopy(status)
# Stop transcoding # Stop transcoding
if status['playmethod'] == v.PLAYBACK_METHOD_TRANSCODE: if status['playmethod'] == v.PLAYBACK_METHOD_TRANSCODE:
LOG.debug('Tell the PMS to stop transcoding') LOG.debug('Tell the PMS to stop transcoding')