mirror of https://gitlab.com/bashrc2/epicyon
Don't show clearnet http favicons
parent
e5c4d9e69b
commit
6c44c8fcaa
|
@ -198,6 +198,9 @@ def _getNewswireFavicon(url: str) -> str:
|
||||||
"""
|
"""
|
||||||
if '://' not in url:
|
if '://' not in url:
|
||||||
return None
|
return None
|
||||||
|
if url.startswith('http://'):
|
||||||
|
if not (url.endswith('.onion') or url.endswith('.i2p')):
|
||||||
|
return None
|
||||||
domain = url.split('://')[1]
|
domain = url.split('://')[1]
|
||||||
if '/' not in domain:
|
if '/' not in domain:
|
||||||
return url + '/favicon.ico'
|
return url + '/favicon.ico'
|
||||||
|
|
Loading…
Reference in New Issue