Always display title if there is content.json file

This commit is contained in:
shortcutme 2019-03-16 00:00:04 +01:00
parent a96ff8399f
commit bcd721e2ef
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -338,10 +338,7 @@ class UiRequest(object):
site = SiteManager.site_manager.get(address)
if (
site and site.content_manager.contents.get("content.json") and
(not site.getReachableBadFiles() or site.settings["own"])
): # Its downloaded or own
if site and site.content_manager.contents.get("content.json"):
title = site.content_manager.contents["content.json"]["title"]
else:
title = "Loading %s..." % address