mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Url encode strm files
This commit is contained in:
parent
e288f991c7
commit
a9aad8fabc
1 changed files with 5 additions and 0 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue