mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Prevent invalid paths
Strm file scenario
This commit is contained in:
parent
6ba664037e
commit
158008415f
1 changed files with 9 additions and 0 deletions
|
@ -156,6 +156,9 @@ class WriteKodiVideoDB():
|
|||
elif "/" in playurl:
|
||||
filename = playurl.rsplit("/",1)[-1]
|
||||
path = playurl.replace(filename, "")
|
||||
else:
|
||||
self.logMsg("Invalid path: %s" % playurl, 1)
|
||||
return
|
||||
else: # Set plugin path and media flags using real filename
|
||||
try:
|
||||
if not "plugin://" in playurl:
|
||||
|
@ -326,6 +329,9 @@ class WriteKodiVideoDB():
|
|||
elif "/" in playurl:
|
||||
filename = playurl.rsplit("/",1)[-1]
|
||||
path = playurl.replace(filename, "")
|
||||
else:
|
||||
self.logMsg("Invalid path: %s" % playurl, 1)
|
||||
return
|
||||
else: # Set plugin path and media flags using real filename
|
||||
try:
|
||||
if not "plugin://" in playurl:
|
||||
|
@ -620,6 +626,9 @@ class WriteKodiVideoDB():
|
|||
elif "/" in playurl:
|
||||
filename = playurl.rsplit("/",1)[-1]
|
||||
path = playurl.replace(filename, "")
|
||||
else:
|
||||
self.logMsg("Invalid path: %s" % playurl, 1)
|
||||
return
|
||||
else: # Set plugin path and media flags - real filename with extension
|
||||
realfile = ""
|
||||
realpath = ""
|
||||
|
|
Loading…
Reference in a new issue