Url encode strm files

This commit is contained in:
angelblue05 2016-11-25 16:03:18 -06:00
parent e288f991c7
commit a9aad8fabc

View file

@ -4,6 +4,7 @@
import logging import logging
import sys import sys
import urllib
import xbmc import xbmc
import xbmcgui import xbmcgui
@ -191,6 +192,10 @@ class PlayUtils():
USER_AGENT = "QuickTime/7.7.4" USER_AGENT = "QuickTime/7.7.4"
playurl += "?|User-Agent=%s" % USER_AGENT playurl += "?|User-Agent=%s" % USER_AGENT
# Strm
if playurl.endswith('.strm'):
playurl = urllib.urlencode(playurl)
return playurl return playurl
def fileExists(self): def fileExists(self):