From 66eb53dc086ea4703f426868f8527b799316d2cb Mon Sep 17 00:00:00 2001
From: im85288 <ianmalcolmmclaughlin@gmail.com>
Date: Mon, 30 Jan 2017 16:05:00 +0000
Subject: [PATCH] add storing current filename to window property to support
 external addons

---
 addon.xml                  | 2 +-
 resources/lib/playutils.py | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/addon.xml b/addon.xml
index 059daa9b..e36e86bc 100644
--- a/addon.xml
+++ b/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon  id="plugin.video.emby"
         name="Emby" 
-        version="2.3.41"
+        version="2.3.42"
         provider-name="Emby.media">
   <requires>
     <import addon="xbmc.python" version="2.19.0"/>
diff --git a/resources/lib/playutils.py b/resources/lib/playutils.py
index b403dbed..2b48dd9f 100644
--- a/resources/lib/playutils.py
+++ b/resources/lib/playutils.py
@@ -65,6 +65,9 @@ class PlayUtils():
 
     def getPlayUrl(self):
 
+        # log filename, used by other addons eg subtitles which require the file name
+        window('embyfilename', value=self.directPlay())
+
         playurl = None
         
         if (self.item.get('Type') in ("Recording", "TvChannel") and self.item.get('MediaSources')