diff --git a/utils.py b/utils.py index 54969c6c6..14314e7e5 100644 --- a/utils.py +++ b/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('/', '-')