mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-22 20:23:12 +00:00
dont remove query when uniquifying links
This commit is contained in:
parent
542b1d14f6
commit
0099849df9
1 changed files with 1 additions and 1 deletions
2
util.py
2
util.py
|
@ -33,7 +33,7 @@ without_query = lambda url: url.split('?', 1)[0]
|
|||
without_hash = lambda url: url.split('#', 1)[0]
|
||||
without_path = lambda url: url.split('/', 1)[0]
|
||||
domain = lambda url: without_hash(without_query(without_path(without_scheme(url))))
|
||||
base_url = lambda url: without_query(without_scheme(url))
|
||||
base_url = lambda url: without_scheme(url) # uniq base url used to dedupe links
|
||||
|
||||
short_ts = lambda ts: ts.split('.')[0]
|
||||
|
||||
|
|
Loading…
Reference in a new issue