mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-22 20:23:12 +00:00
unquote url titles before printing
This commit is contained in:
parent
2641c46a4d
commit
06b6ef1d67
1 changed files with 2 additions and 0 deletions
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…
Reference in a new issue