Shorter filename

main
Bob Mottram 2021-12-17 12:11:59 +00:00
parent 7c8fc0719f
commit 1b2f3d2539
1 changed files with 2 additions and 0 deletions

View File

@ -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('/', '-')