Clean up window properties after playing an item

This commit is contained in:
tomkat83 2016-02-07 13:35:03 +01:00
parent 02fa0eb7cb
commit 0ef03c73bb

View file

@ -538,19 +538,19 @@ class Player(xbmc.Player):
doUtils.downloadUrl(url, type="DELETE")
# Clean the WINDOW properties
# for filename in self.played_info:
# cleanup = (
# 'emby_%s.itemid' % filename,
# 'emby_%s.runtime' % filename,
# 'emby_%s.refreshid' % filename,
# 'emby_%s.playmethod' % filename,
# 'emby_%s.type' % filename,
# 'plex_%s.playQueueItemID' % filename,
# 'plex_%s.playlistPosition' % filename,
# 'plex_%s.guid' % filename
# )
# for item in cleanup:
# utils.window(item, clear=True)
for filename in self.played_info:
cleanup = (
'emby_%s.itemid' % filename,
'emby_%s.runtime' % filename,
'emby_%s.refreshid' % filename,
'emby_%s.playmethod' % filename,
'emby_%s.type' % filename,
'plex_%s.playQueueItemID' % filename,
'plex_%s.playlistPosition' % filename,
'plex_%s.guid' % filename
)
for item in cleanup:
utils.window(item, clear=True)
self.played_info.clear()