From 06b6ef1d670e0473185ce7355cf65cc703ea230a Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Tue, 17 Apr 2018 10:03:40 -0400 Subject: [PATCH] unquote url titles before printing --- links.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/links.py b/links.py index 260dadb1..c1f31ba3 100644 --- a/links.py +++ b/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()