mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-25 23:37:16 +00:00
chg:[i2p] display correctly b32 i2p addresses
This commit is contained in:
parent
e4e314e28a
commit
2160184469
1 changed files with 9 additions and 0 deletions
|
@ -54,6 +54,15 @@ def unpack_url(url):
|
|||
to_crawl['domain'] = url_unpack['domain']
|
||||
to_crawl['domain'] = to_crawl['domain'].lower()
|
||||
|
||||
if to_crawl['domain'] == "b32.i2p":
|
||||
try:
|
||||
subdomain = url_unpack['subdomain'].decode()
|
||||
except:
|
||||
subdomain = url_unpack['subdomain']
|
||||
|
||||
if subdomain:
|
||||
subdomain.lower()
|
||||
to_crawl['domain'] = f"{subdomain.split('.')[-1]}.{to_crawl['domain']}"
|
||||
|
||||
# force lower case domain/subdomain (rfc4343)
|
||||
# # FIXME: # TODO: remove me
|
||||
|
|
Loading…
Reference in a new issue