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