Add support for Google News

master
pictuga 2014-05-18 11:58:45 +02:00
parent bbf1ffbb15
commit d8a3c4e9af
1 changed files with 5 additions and 0 deletions

View File

@ -363,6 +363,11 @@ def Fix(item, feedurl='/'):
item.link = urlparse.parse_qs(urlparse.urlparse(item.link).query)['q'][0]
log(item.link)
# google news
if fnmatch(item.link, 'http://news.google.com/news/url*url=*'):
item.link = urlparse.parse_qs(urlparse.urlparse(item.link).query)['url'][0]
log(item.link)
# facebook
if fnmatch(item.link, 'https://www.facebook.com/l.php?u=*'):
item.link = urlparse.parse_qs(urlparse.urlparse(item.link).query)['u'][0]