Fix #7478 (Suggested modification for Irish Times news feed)

This commit is contained in:
Kovid Goyal 2010-11-09 13:30:22 -07:00
parent 4c1a60d62d
commit 77efdeaa53

View File

@ -33,13 +33,14 @@ class IrishTimes(BasicNewsRecipe):
('Letters', 'http://www.irishtimes.com/feeds/rss/newspaper/letters.rss'), ('Letters', 'http://www.irishtimes.com/feeds/rss/newspaper/letters.rss'),
] ]
def print_version(self, url): def print_version(self, url):
if url.count('rss.feedsportal.com'): if url.count('rss.feedsportal.com'):
u = url.replace('0Bhtml/story01.htm','_pf0Bhtml/story01.htm') u = 'http://www.irishtimes.com' + \
else: (((url[69:].replace('0C','/')).replace('0A','0'))).replace('0Bhtml/story01..htm','_pf.html')
u = url.replace('.html','_pf.html') else:
return u u = url.replace('.html','_pf.html')
return u
def get_article_url(self, article): def get_article_url(self, article):
return article.link return article.link