mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Economist: Dont download interactive articles
They dont work well and break conversion to EPUB with giant embedded SVG images. Fixes #2000279 [Fetch news for The Economist fails](https://bugs.launchpad.net/calibre/+bug/2000279)
This commit is contained in:
parent
732a92b153
commit
213dee41da
@ -307,6 +307,9 @@ class Economist(BasicNewsRecipe):
|
||||
sub = safe_dict(part, "print", "subheadline") or ''
|
||||
if sub and section != sub:
|
||||
desc = sub + ' :: ' + desc
|
||||
if '/interactive/' in url:
|
||||
self.log('Skipping interactive article:', title, url)
|
||||
continue
|
||||
feeds_dict[section].append({"title": title, "url": url, "description": desc})
|
||||
self.log(' ', title, url, '\n ', desc)
|
||||
return [(section, articles) for section, articles in feeds_dict.items()]
|
||||
|
@ -307,6 +307,9 @@ class Economist(BasicNewsRecipe):
|
||||
sub = safe_dict(part, "print", "subheadline") or ''
|
||||
if sub and section != sub:
|
||||
desc = sub + ' :: ' + desc
|
||||
if '/interactive/' in url:
|
||||
self.log('Skipping interactive article:', title, url)
|
||||
continue
|
||||
feeds_dict[section].append({"title": title, "url": url, "description": desc})
|
||||
self.log(' ', title, url, '\n ', desc)
|
||||
return [(section, articles) for section, articles in feeds_dict.items()]
|
||||
|
Loading…
x
Reference in New Issue
Block a user