parent
a376dbe2a5
commit
7bc5f3ad16
1 changed files with 6 additions and 2 deletions
|
@ -124,8 +124,12 @@ class API(object):
|
||||||
# Local path
|
# Local path
|
||||||
filename = ans.rsplit("\\", 1)[1]
|
filename = ans.rsplit("\\", 1)[1]
|
||||||
else:
|
else:
|
||||||
# Network share
|
try:
|
||||||
filename = ans.rsplit("/", 1)[1]
|
# Network share
|
||||||
|
filename = ans.rsplit("/", 1)[1]
|
||||||
|
except IndexError:
|
||||||
|
# E.g. certain Plex channels
|
||||||
|
filename = None
|
||||||
return filename
|
return filename
|
||||||
|
|
||||||
def file_path(self, force_first_media=False):
|
def file_path(self, force_first_media=False):
|
||||||
|
|
Loading…
Reference in a new issue