From a9aad8fabc064786a32dc5dbef92a73e40f4c648 Mon Sep 17 00:00:00 2001
From: angelblue05 <tamara.angel05@gmail.com>
Date: Fri, 25 Nov 2016 16:03:18 -0600
Subject: [PATCH] Url encode strm files

---
 resources/lib/playutils.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/resources/lib/playutils.py b/resources/lib/playutils.py
index e7b65af9..7cee93df 100644
--- a/resources/lib/playutils.py
+++ b/resources/lib/playutils.py
@@ -4,6 +4,7 @@
 
 import logging
 import sys
+import urllib
 
 import xbmc
 import xbmcgui
@@ -191,6 +192,10 @@ class PlayUtils():
             USER_AGENT = "QuickTime/7.7.4"
             playurl += "?|User-Agent=%s" % USER_AGENT
 
+        # Strm
+        if playurl.endswith('.strm'):
+            playurl = urllib.urlencode(playurl)
+
         return playurl
 
     def fileExists(self):