From 4054a0f17cc314985203cdd97d77e80deaabd4bf Mon Sep 17 00:00:00 2001 From: Shaun Date: Sun, 7 Jul 2019 12:17:11 +1000 Subject: [PATCH] session_id should no longer be needed, this was a hack to get things to show the correct play status --- resources/lib/item_functions.py | 2 +- service.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lib/item_functions.py b/resources/lib/item_functions.py index 81ec947..ea01e1b 100644 --- a/resources/lib/item_functions.py +++ b/resources/lib/item_functions.py @@ -349,7 +349,7 @@ def add_gui_item(url, item_details, display_options, folder=True): if item_details.name_format: u += '&name_format=' + urllib.quote(item_details.name_format) else: - u = sys.argv[0] + "?item_id=" + url + "&mode=PLAY" + "&session_id=" + home_window.getProperty("session_id") + u = sys.argv[0] + "?item_id=" + url + "&mode=PLAY"# + "&session_id=" + home_window.getProperty("session_id") # Create the ListItem that will be displayed thumbPath = item_details.art["thumb"] diff --git a/service.py b/service.py index 3529260..a2055ec 100644 --- a/service.py +++ b/service.py @@ -64,7 +64,8 @@ last_random_movie_update = 0 # session id # TODO: this is used to append to the end of PLAY urls, this is to stop mark watched from overriding the Emby ones -home_window.setProperty("session_id", str(time.time())) +# this shold no longer be needed with the fix for ListItem items using the play status from the ListItem instead of the DB +# home_window.setProperty("session_id", str(time.time())) # start the library update monitor library_change_monitor = LibraryChangeMonitor()