mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-24 15:13:03 +02:00
unquote url titles before printing
This commit is contained in:
2
links.py
2
links.py
@@ -33,6 +33,7 @@ Link {
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
from urllib.parse import unquote
|
||||||
|
|
||||||
from util import (
|
from util import (
|
||||||
domain,
|
domain,
|
||||||
@@ -85,6 +86,7 @@ def uniquefied_links(sorted_links):
|
|||||||
unique_timestamps = {}
|
unique_timestamps = {}
|
||||||
for link in unique_urls.values():
|
for link in unique_urls.values():
|
||||||
link['timestamp'] = lowest_uniq_timestamp(unique_timestamps, link['timestamp'])
|
link['timestamp'] = lowest_uniq_timestamp(unique_timestamps, link['timestamp'])
|
||||||
|
link['title'] = unquote(link['title'])
|
||||||
unique_timestamps[link['timestamp']] = link
|
unique_timestamps[link['timestamp']] = link
|
||||||
|
|
||||||
return unique_timestamps.values()
|
return unique_timestamps.values()
|
||||||
|
Reference in New Issue
Block a user