mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
recipe: yomiuri_world: fix for fetching date field
This commit is contained in:
parent
5f5c41e495
commit
21969e157c
@ -50,11 +50,9 @@ class YOLNews(BasicNewsRecipe):
|
|||||||
itema = itt.find('a',href=True)
|
itema = itt.find('a',href=True)
|
||||||
if itema:
|
if itema:
|
||||||
itd1 = itema.findNextSibling(text = True)
|
itd1 = itema.findNextSibling(text = True)
|
||||||
itd2 = itd1.findNextSibling(text = True)
|
|
||||||
itd3 = itd2.findNextSibling(text = True)
|
|
||||||
newsarticles.append({
|
newsarticles.append({
|
||||||
'title' :itema.string
|
'title' :itema.string
|
||||||
,'date' :''.join([itd1, itd2, itd3])
|
,'date' :''.join([itd1])
|
||||||
,'url' :'http://www.yomiuri.co.jp' + itema['href']
|
,'url' :'http://www.yomiuri.co.jp' + itema['href']
|
||||||
,'description':''
|
,'description':''
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user