mirror of https://gitlab.com/bashrc2/epicyon
Include dot
parent
1b2f3d2539
commit
f36d19ccbe
4
utils.py
4
utils.py
|
@ -3229,6 +3229,6 @@ def getFavFilenameFromUrl(baseDir: str, faviconUrl: str) -> str:
|
|||
"""
|
||||
if '://' in faviconUrl:
|
||||
faviconUrl = faviconUrl.split('://')[1]
|
||||
if '/favicon' in faviconUrl:
|
||||
faviconUrl = faviconUrl.replace('/favicon', '')
|
||||
if '/favicon.' in faviconUrl:
|
||||
faviconUrl = faviconUrl.replace('/favicon.', '.')
|
||||
return baseDir + '/favicons/' + faviconUrl.replace('/', '-')
|
||||
|
|
Loading…
Reference in New Issue