mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 16:44:27 +01:00
Fix #7478 (Suggested modification for Irish Times news feed)
This commit is contained in:
parent
4c1a60d62d
commit
77efdeaa53
1 changed files with 7 additions and 6 deletions
|
|
@ -33,13 +33,14 @@ class IrishTimes(BasicNewsRecipe):
|
|||
('Letters', 'http://www.irishtimes.com/feeds/rss/newspaper/letters.rss'),
|
||||
]
|
||||
|
||||
|
||||
def print_version(self, url):
|
||||
if url.count('rss.feedsportal.com'):
|
||||
u = url.replace('0Bhtml/story01.htm','_pf0Bhtml/story01.htm')
|
||||
else:
|
||||
u = url.replace('.html','_pf.html')
|
||||
return u
|
||||
if url.count('rss.feedsportal.com'):
|
||||
u = 'http://www.irishtimes.com' + \
|
||||
(((url[69:].replace('0C','/')).replace('0A','0'))).replace('0Bhtml/story01..htm','_pf.html')
|
||||
else:
|
||||
u = url.replace('.html','_pf.html')
|
||||
return u
|
||||
|
||||
|
||||
def get_article_url(self, article):
|
||||
return article.link
|
||||
|
|
|
|||
Loading…
Reference in a new issue