unquote url titles before printing

This commit is contained in:
Nick Sweeting 2018-04-17 10:03:40 -04:00
parent 2641c46a4d
commit 06b6ef1d67

View file

@ -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()