Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/unkn0w7n/calibre
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed May 18, 2024
2 parents 838a056 + 298f1d7 commit 265558e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipes/wsj.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class WSJ(BasicNewsRecipe):
dict(name='panel', attrs={'id':'metadata'}),
dict(name='panel', attrs={'layout':'inline'}),
dict(name='panel', attrs={'embed':'inner-article-ad'}),
dict(name='span', attrs={'embed':'ticker'}),
classes('lamrelated-articles-inset-panel'),
dict(name='p', attrs={'id':[
'keywords', 'orig-pubdate-number', 'type', 'is-custom-flashline', 'grouphed', 'author-ids',
Expand Down Expand Up @@ -90,6 +91,9 @@ class WSJ(BasicNewsRecipe):
p = time.findParent('div')
if p:
p.name = 'p'
for img in soup.findAll('img', src=True):
if img['src'].endswith('/OR'):
img['src'] = img['src'][:-3]
return soup

if not past_edition:
Expand Down

0 comments on commit 265558e

Please sign in to comment.