mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
recipe: jijinews: fix indent error
This commit is contained in:
parent
38d1375974
commit
176010dc03
@ -19,17 +19,16 @@ class JijiDotCom(BasicNewsRecipe):
|
||||
max_articles_per_feed = 100
|
||||
encoding = 'EUC_JP'
|
||||
language = 'ja'
|
||||
masthead_url = 'http://jen.jiji.com/images/logo_jijipress.gif'
|
||||
top_url = 'http://www.jiji.com/'
|
||||
masthead_url = 'http://jen.jiji.com/images/logo_jijipress.gif'
|
||||
top_url = 'http://www.jiji.com/'
|
||||
|
||||
feeds = [(u'\u30cb\u30e5\u30fc\u30b9', u'http://www.jiji.com/rss/ranking.rdf')]
|
||||
remove_tags_after = dict(id="ad_google")
|
||||
|
||||
def get_cover_url(self):
|
||||
cover_url = 'http://www.jiji.com/img/top_header_logo2.gif'
|
||||
soup = self.index_to_soup(self.top_url)
|
||||
cover_item = soup.find('div', attrs={'class':'top-pad-photos'})
|
||||
if cover_item:
|
||||
cover_url = self.top_url + cover_item.img['src']
|
||||
return cover_url
|
||||
|
||||
def get_cover_url(self):
|
||||
cover_url = 'http://www.jiji.com/img/top_header_logo2.gif'
|
||||
soup = self.index_to_soup(self.top_url)
|
||||
cover_item = soup.find('div', attrs={'class':'top-pad-photos'})
|
||||
if cover_item:
|
||||
cover_url = self.top_url + cover_item.img['src']
|
||||
return cover_url
|
||||
|
Loading…
x
Reference in New Issue
Block a user