feed: Drop Google Reader rel-via manipulation
authorW. Trevor King <wking@tremily.us>
Fri, 15 Mar 2013 11:37:25 +0000 (07:37 -0400)
committerW. Trevor King <wking@tremily.us>
Fri, 15 Mar 2013 11:37:25 +0000 (07:37 -0400)
Google Reader will be retired on 2013-07-01, so we should be able to
drop the special rel-via handling it got starting with eb04d97 (Bump
to version 2.67, 2010-09-21).

[1]: http://googlereader.blogspot.com/2013/03/powering-down-google-reader.html

Signed-off-by: W. Trevor King <wking@tremily.us>
rss2email/feed.py

index 776d115d90bc4db67083eabb85e5797757d4f46f..68a79f43c6e9eb0108613a6bdedae9ec949e1d5b 100644 (file)
@@ -710,9 +710,6 @@ class Feed (object):
             for elink in getattr(entry, 'links', []):
                 if elink.get('rel', None) == 'via':
                     url = elink['href']
-                    url = url.replace(
-                        'http://www.google.com/reader/public/atom/',
-                        'http://www.google.com/reader/view/')
                     title = url
                     if elink.get('title', None):
                         title = elink['title']
@@ -742,9 +739,6 @@ class Feed (object):
             for elink in getattr(entry, 'links', []):
                 if elink.get('rel', None) == 'via':
                     url = elink['href']
-                    url = url.replace(
-                        'http://www.google.com/reader/public/atom/',
-                        'http://www.google.com/reader/view/')
                     title = url
                     if elink.get('title', None):
                         title = elink['title']