Move Kodi playback info to state.py

This commit is contained in:
croneter 2017-12-07 17:25:48 +01:00
parent 65a48ebe7b
commit e6a5b1c157
2 changed files with 6 additions and 1 deletions

View file

@ -22,7 +22,8 @@ log = logging.getLogger("PLEX."+__name__)
class Player(xbmc.Player):
playStats = {}
played_info = state.PLAYED_INFO
playStats = state.PLAYER_STATES
currentFile = None
def __init__(self):

View file

@ -74,3 +74,7 @@ PLEX_USER_ID = None
# Token passed along, e.g. if playback initiated by Plex Companion. Might be
# another user playing something! Token identifies user
PLEX_TRANSIENT_TOKEN = None
# Kodi player states
PLAYER_STATES = {}
PLAYED_INFO = {}