Fix RecursionError if videos lie in a root directory
This commit is contained in:
parent
a019e73dfc
commit
6e5dac46bb
1 changed files with 2 additions and 4 deletions
|
@ -31,10 +31,8 @@ def append_os_sep(path):
|
||||||
Appends either a '\\' or '/' - IRRELEVANT of the host OS!! (os.path.join is
|
Appends either a '\\' or '/' - IRRELEVANT of the host OS!! (os.path.join is
|
||||||
dependant on the host OS)
|
dependant on the host OS)
|
||||||
"""
|
"""
|
||||||
if '/' in path:
|
separator = '/' if '/' in path else '\\'
|
||||||
return path + '/'
|
return path if path.endswith(separator) else path + separator
|
||||||
else:
|
|
||||||
return path + '\\'
|
|
||||||
|
|
||||||
|
|
||||||
def translate_path(path):
|
def translate_path(path):
|
||||||
|
|
Loading…
Reference in a new issue