From f7c79e366ebe9bc7522bb4d7a9245ad9710fc2fd Mon Sep 17 00:00:00 2001 From: shaun Date: Thu, 2 Feb 2017 07:00:31 +1100 Subject: [PATCH] wrap the set window prop for file name in a try --- addon.xml | 2 +- resources/lib/playutils.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/addon.xml b/addon.xml index e36e86bc..37d82938 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/resources/lib/playutils.py b/resources/lib/playutils.py index 2b48dd9f..1f480fcb 100644 --- a/resources/lib/playutils.py +++ b/resources/lib/playutils.py @@ -66,7 +66,10 @@ class PlayUtils(): def getPlayUrl(self): # log filename, used by other addons eg subtitles which require the file name - window('embyfilename', value=self.directPlay()) + try: + window('embyfilename', value=self.directPlay()) + except: + log.info("Could not get file path for embyfilename window prop") playurl = None