mirror of https://gitlab.com/bashrc2/epicyon
Dash instead of hash
parent
f9bbfdd8cd
commit
e9b98b82ce
|
@ -7412,7 +7412,6 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
"""Shows a favicon image obtained from the cache
|
||||
"""
|
||||
mediaFilename = baseDir + urllib.parse.unquote_plus(path)
|
||||
print('showCachedFavicon: ' + mediaFilename)
|
||||
if not os.path.isfile(mediaFilename):
|
||||
self._404()
|
||||
return
|
||||
|
|
|
@ -156,7 +156,7 @@ def _downloadNewswireFeedFavicon(session, baseDir: str,
|
|||
return False
|
||||
if not os.path.isdir(baseDir + '/favicons'):
|
||||
os.mkdir(baseDir + '/favicons')
|
||||
linkFilename = favUrl.replace('/', '#')
|
||||
linkFilename = favUrl.replace('/', '-')
|
||||
imageFilename = baseDir + '/favicons/' + linkFilename
|
||||
if os.path.isfile(imageFilename):
|
||||
return True
|
||||
|
|
|
@ -240,7 +240,7 @@ def _htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool,
|
|||
faviconUrl = getNewswireFaviconUrl(url)
|
||||
faviconLink = ''
|
||||
if faviconUrl:
|
||||
favBase = '/favicons/' + faviconUrl.replace('/', '#')
|
||||
favBase = '/favicons/' + faviconUrl.replace('/', '-')
|
||||
cachedFaviconFilename = baseDir + favBase
|
||||
if os.path.isfile(cachedFaviconFilename):
|
||||
faviconUrl = favBase
|
||||
|
|
Loading…
Reference in New Issue