mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1059364 (Washington Post recipe needs an update)
This commit is contained in:
parent
935049c1b3
commit
df7a756598
@ -64,8 +64,10 @@ class TheWashingtonPost(BasicNewsRecipe):
|
|||||||
|
|
||||||
def get_article_url(self, article):
|
def get_article_url(self, article):
|
||||||
link = BasicNewsRecipe.get_article_url(self,article)
|
link = BasicNewsRecipe.get_article_url(self,article)
|
||||||
|
if article.id.startswith('http'):
|
||||||
|
link = article.id
|
||||||
if not 'washingtonpost.com' in link:
|
if not 'washingtonpost.com' in link:
|
||||||
self.log('Skipping adds:', link)
|
self.log('Skipping ads:', link)
|
||||||
return None
|
return None
|
||||||
for it in ['_video.html','_gallery.html','_links.html']:
|
for it in ['_video.html','_gallery.html','_links.html']:
|
||||||
if it in link:
|
if it in link:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user