mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
9f9cafaf1c
commit
9c123ffd63
@ -152,7 +152,9 @@ class WSJ(BasicNewsRecipe):
|
|||||||
if '-pages_' in k:
|
if '-pages_' in k:
|
||||||
section = k.split('-pages_')[0].replace('_', ' ')
|
section = k.split('-pages_')[0].replace('_', ' ')
|
||||||
if 'MAGAZINE' in section:
|
if 'MAGAZINE' in section:
|
||||||
continue
|
if not datetime.now().strftime("%d") == 1:
|
||||||
|
continue
|
||||||
|
self.log('Loading Magazine section')
|
||||||
self.log(section)
|
self.log(section)
|
||||||
|
|
||||||
articles = []
|
articles = []
|
||||||
@ -172,6 +174,6 @@ class WSJ(BasicNewsRecipe):
|
|||||||
return BeautifulSoup(raw).prettify()
|
return BeautifulSoup(raw).prettify()
|
||||||
|
|
||||||
def populate_article_metadata(self, article, soup, first):
|
def populate_article_metadata(self, article, soup, first):
|
||||||
art = soup.find('h1', attrs={'title':True})
|
lnk = soup.find('p', attrs={'id':'share-link'})
|
||||||
if art:
|
if lnk:
|
||||||
article.url = art['title']
|
article.url = lnk['title']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user