mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-02-04 18:37:26 +08:00
unquote url titles before printing
This commit is contained in:
parent
2641c46a4d
commit
06b6ef1d67
2
links.py
2
links.py
@ -33,6 +33,7 @@ Link {
|
||||
"""
|
||||
|
||||
import datetime
|
||||
from urllib.parse import unquote
|
||||
|
||||
from util import (
|
||||
domain,
|
||||
@ -85,6 +86,7 @@ def uniquefied_links(sorted_links):
|
||||
unique_timestamps = {}
|
||||
for link in unique_urls.values():
|
||||
link['timestamp'] = lowest_uniq_timestamp(unique_timestamps, link['timestamp'])
|
||||
link['title'] = unquote(link['title'])
|
||||
unique_timestamps[link['timestamp']] = link
|
||||
|
||||
return unique_timestamps.values()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user