Include dot

main
Bob Mottram 2021-12-17 12:13:20 +00:00
parent 1b2f3d2539
commit f36d19ccbe
1 changed files with 2 additions and 2 deletions

View File

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