Fix RecursionError if videos lie in a root directory

This commit is contained in:
croneter 2021-09-11 16:47:28 +02:00
parent a019e73dfc
commit 6e5dac46bb

View file

@ -31,10 +31,8 @@ def append_os_sep(path):
Appends either a '\\' or '/' - IRRELEVANT of the host OS!! (os.path.join is
dependant on the host OS)
"""
if '/' in path:
return path + '/'
else:
return path + '\\'
separator = '/' if '/' in path else '\\'
return path if path.endswith(separator) else path + separator
def translate_path(path):