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:
|
elif "/" in playurl:
|
||||||
filename = playurl.rsplit("/",1)[-1]
|
filename = playurl.rsplit("/",1)[-1]
|
||||||
path = playurl.replace(filename, "")
|
path = playurl.replace(filename, "")
|
||||||
|
else:
|
||||||
|
self.logMsg("Invalid path: %s" % playurl, 1)
|
||||||
|
return
|
||||||
else: # Set plugin path and media flags using real filename
|
else: # Set plugin path and media flags using real filename
|
||||||
try:
|
try:
|
||||||
if not "plugin://" in playurl:
|
if not "plugin://" in playurl:
|
||||||
|
@ -326,6 +329,9 @@ class WriteKodiVideoDB():
|
||||||
elif "/" in playurl:
|
elif "/" in playurl:
|
||||||
filename = playurl.rsplit("/",1)[-1]
|
filename = playurl.rsplit("/",1)[-1]
|
||||||
path = playurl.replace(filename, "")
|
path = playurl.replace(filename, "")
|
||||||
|
else:
|
||||||
|
self.logMsg("Invalid path: %s" % playurl, 1)
|
||||||
|
return
|
||||||
else: # Set plugin path and media flags using real filename
|
else: # Set plugin path and media flags using real filename
|
||||||
try:
|
try:
|
||||||
if not "plugin://" in playurl:
|
if not "plugin://" in playurl:
|
||||||
|
@ -620,6 +626,9 @@ class WriteKodiVideoDB():
|
||||||
elif "/" in playurl:
|
elif "/" in playurl:
|
||||||
filename = playurl.rsplit("/",1)[-1]
|
filename = playurl.rsplit("/",1)[-1]
|
||||||
path = playurl.replace(filename, "")
|
path = playurl.replace(filename, "")
|
||||||
|
else:
|
||||||
|
self.logMsg("Invalid path: %s" % playurl, 1)
|
||||||
|
return
|
||||||
else: # Set plugin path and media flags - real filename with extension
|
else: # Set plugin path and media flags - real filename with extension
|
||||||
realfile = ""
|
realfile = ""
|
||||||
realpath = ""
|
realpath = ""
|
||||||
|
|
Loading…
Reference in a new issue