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
|
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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue