mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-02 11:36:15 -04:00
Merge pull request #175 from vbanos/whatwg-outlinks
Use urlcanon.whatwg in extracted outlinks
This commit is contained in:
commit
3c85cb34c3
1 changed files with 2 additions and 2 deletions
|
@ -594,8 +594,8 @@ class Browser:
|
||||||
if ('result' in message and 'result' in message['result']
|
if ('result' in message and 'result' in message['result']
|
||||||
and 'value' in message['result']['result']):
|
and 'value' in message['result']['result']):
|
||||||
if message['result']['result']['value']:
|
if message['result']['result']['value']:
|
||||||
return frozenset(
|
return frozenset([str(urlcanon.whatwg(link)) for link in
|
||||||
message['result']['result']['value'].split('\n'))
|
message['result']['result']['value'].split('\n')])
|
||||||
else:
|
else:
|
||||||
# no links found
|
# no links found
|
||||||
return frozenset()
|
return frozenset()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue