From e4f4900499f6b52d347f40a69afab74f977be619 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 31 Jan 2016 17:28:41 -0600 Subject: [PATCH 1/4] Add extra verification for playback Prevent false detection of widget playback if happen to be on home and resuming with Play-to emby function. --- resources/lib/playbackutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/playbackutils.py b/resources/lib/playbackutils.py index 8bedc8d1..65c1d8b9 100644 --- a/resources/lib/playbackutils.py +++ b/resources/lib/playbackutils.py @@ -197,7 +197,7 @@ class PlaybackUtils(): ############### PLAYBACK ################ - if homeScreen and seektime: + if homeScreen and seektime and utils.window('emby_customPlaylist') != "true": self.logMsg("Play as a widget item.", 1) self.setListItem(listitem) xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, listitem) From 0aa4ffd1bc56f1a3261ef52742dfa51fd7033416 Mon Sep 17 00:00:00 2001 From: Shaun Date: Mon, 1 Feb 2016 11:40:20 +1100 Subject: [PATCH 2/4] WebSocket send ping to server every 10 sec --- resources/lib/websocket_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/websocket_client.py b/resources/lib/websocket_client.py index da59da83..f99c5212 100644 --- a/resources/lib/websocket_client.py +++ b/resources/lib/websocket_client.py @@ -301,7 +301,7 @@ class WebSocket_Client(threading.Thread): while not monitor.abortRequested(): - self.client.run_forever() + self.client.run_forever(ping_interval = 10) if self.stopWebsocket: break From 2b32a2e0c98d6caee42decf8127a45135fd08426 Mon Sep 17 00:00:00 2001 From: Shaun Date: Mon, 1 Feb 2016 11:41:24 +1100 Subject: [PATCH 3/4] bump ver to 2.0 --- addon.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon.xml b/addon.xml index 8016e46f..3600622d 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ From a2e6a362c54caef0ecd5557247f403808f8657eb Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 31 Jan 2016 23:12:44 -0600 Subject: [PATCH 4/4] Adjust for manual sync at start up --- resources/lib/librarysync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index ae1fcd1b..704b8e1a 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -91,7 +91,7 @@ class LibrarySync(threading.Thread): if not completed: # Fast sync failed or server plugin is not found - completed = self.fullSync(manualrun=True) + completed = ManualSync() else: # Install sync is not completed completed = self.fullSync()