Fix #1880314 [BBC News fetch fails - conversion error](https://bugs.launchpad.net/calibre/+bug/1880314)

This commit is contained in:
Kovid Goyal 2020-05-24 13:35:58 +05:30
parent 849bdc6040
commit d909d2effc
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -608,6 +608,8 @@ class BBCNews(BasicNewsRecipe):
# blank / missing / empty articles which have an index title and then no # blank / missing / empty articles which have an index title and then no
# body. # body.
def print_version(self, url): def print_version(self, url):
if url.startswith("https://www.bbc.co.uk/news/world-51235105"):
self.abort_article("This article contains a gigantic coronavirus table")
# Handle sports page urls type 01: # Handle sports page urls type 01:
if (url.find("go/rss/-/sport1/") != -1): if (url.find("go/rss/-/sport1/") != -1):