mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Fix #879459 (Updated recipe for The Japan Times)
This commit is contained in:
parent
3f4e31df9d
commit
1d986edd65
@ -44,7 +44,11 @@ class JapanTimes(BasicNewsRecipe):
|
|||||||
return rurl.partition('?')[0]
|
return rurl.partition('?')[0]
|
||||||
|
|
||||||
def print_version(self, url):
|
def print_version(self, url):
|
||||||
return url.replace('/cgi-bin/','/print/')
|
if '/rss/' in url:
|
||||||
|
return url.replace('.jp/rss/','.jp/print/')
|
||||||
|
if '/text/' in url:
|
||||||
|
return url.replace('.jp/text/','.jp/print/')
|
||||||
|
return url
|
||||||
|
|
||||||
def preprocess_html(self, soup):
|
def preprocess_html(self, soup):
|
||||||
for item in soup.findAll(style=True):
|
for item in soup.findAll(style=True):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user