Comment typo

This commit is contained in:
shortcutme 2016-10-02 14:24:48 +02:00
parent bca08970ba
commit fbdc9e2b40

View file

@ -349,11 +349,11 @@ class UiRequest(object):
if site.settings["own"]: if site.settings["own"]:
from Debug import DebugMedia from Debug import DebugMedia
DebugMedia.merge(file_path) DebugMedia.merge(file_path)
if os.path.isfile(file_path): # File exits if os.path.isfile(file_path): # File exists
return self.actionFile(file_path) return self.actionFile(file_path)
elif os.path.isdir(file_path): # If this is actually a folder, add "/" and redirect elif os.path.isdir(file_path): # If this is actually a folder, add "/" and redirect
return self.actionRedirect("./{0}/".format(path_parts["inner_path"].split("/")[-1])) return self.actionRedirect("./{0}/".format(path_parts["inner_path"].split("/")[-1]))
else: # File not exits, try to download else: # File not exists, try to download
site = SiteManager.site_manager.need(address, all_file=False) site = SiteManager.site_manager.need(address, all_file=False)
result = site.needFile(path_parts["inner_path"], priority=5) # Wait until file downloads result = site.needFile(path_parts["inner_path"], priority=5) # Wait until file downloads
if result: if result:
@ -427,7 +427,7 @@ class UiRequest(object):
except StopIteration: except StopIteration:
file.close() file.close()
break break
else: # File not exits else: # File not exists
yield self.error404(file_path) yield self.error404(file_path)
# On websocket connection # On websocket connection