From d860c2a51f5d2044c0ad15632954a9b26b141783 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 15 Mar 2020 17:20:44 +0530 Subject: [PATCH] Fix #1867512 [Recipe that doesn't work](https://bugs.launchpad.net/calibre/+bug/1867512) --- recipes/20_minutos.recipe | 2 +- recipes/20minutos.recipe | 65 ------------------------------------ recipes/icons/20minutos.png | Bin 661 -> 0 bytes 3 files changed, 1 insertion(+), 66 deletions(-) delete mode 100644 recipes/20minutos.recipe delete mode 100644 recipes/icons/20minutos.png diff --git a/recipes/20_minutos.recipe b/recipes/20_minutos.recipe index 208fbc7401..c74cae4440 100644 --- a/recipes/20_minutos.recipe +++ b/recipes/20_minutos.recipe @@ -13,7 +13,7 @@ from calibre.web.feeds.news import BasicNewsRecipe class AdvancedUserRecipe1294946868(BasicNewsRecipe): - title = u'20 Minutos new' + title = u'20 Minutos' publisher = u'Grupo 20 Minutos' __author__ = 'Luis Hernandez' diff --git a/recipes/20minutos.recipe b/recipes/20minutos.recipe deleted file mode 100644 index e40fc174fa..0000000000 --- a/recipes/20minutos.recipe +++ /dev/null @@ -1,65 +0,0 @@ -__license__ = 'GPL v3' -__copyright__ = '2011, Darko Miletic ' -''' -www.20minutos.es -''' - -from calibre.web.feeds.news import BasicNewsRecipe - - -class t20Minutos(BasicNewsRecipe): - title = '20 Minutos' - __author__ = 'Darko Miletic' - description = 'Diario de informacion general y local mas leido de Espania, noticias de ultima hora de Espania, el mundo, local, deportes, noticias curiosas y mas' # noqa - publisher = '20 Minutos Online SL' - category = 'news, politics, Spain' - oldest_article = 2 - max_articles_per_feed = 200 - no_stylesheets = True - encoding = 'utf8' - use_embedded_content = True - language = 'es' - remove_empty_feeds = True - publication_type = 'newspaper' - masthead_url = 'http://estaticos.20minutos.es/css4/img/ui/logo-301x54.png' - extra_css = """ - body{font-family: Arial,Helvetica,sans-serif } - img{margin-bottom: 0.4em; display:block} - """ - - conversion_options = { - 'comment': description, 'tags': category, 'publisher': publisher, 'language': language - } - - remove_tags = [dict(attrs={'class': 'mf-viral'})] - remove_attributes = ['border'] - - feeds = [ - - (u'Principal', u'http://20minutos.feedsportal.com/c/32489/f/478284/index.rss'), - (u'Cine', u'http://20minutos.feedsportal.com/c/32489/f/478285/index.rss'), - (u'Internacional', u'http://20minutos.feedsportal.com/c/32489/f/492689/index.rss'), - (u'Deportes', u'http://20minutos.feedsportal.com/c/32489/f/478286/index.rss'), - (u'Nacional', u'http://20minutos.feedsportal.com/c/32489/f/492688/index.rss'), - (u'Economia', u'http://20minutos.feedsportal.com/c/32489/f/492690/index.rss'), - (u'Tecnologia', u'http://20minutos.feedsportal.com/c/32489/f/478292/index.rss') - ] - - def preprocess_html(self, soup): - for item in soup.findAll(style=True): - del item['style'] - for item in soup.findAll('a'): - limg = item.find('img') - if item.string is not None: - str = item.string - item.replaceWith(str) - else: - if limg: - item.name = 'div' - item.attrs = [] - else: - str = self.tag_to_string(item) - item.replaceWith(str) - for item in soup.findAll('img', alt=False): - item['alt'] = 'image' - return soup diff --git a/recipes/icons/20minutos.png b/recipes/icons/20minutos.png deleted file mode 100644 index 8d3df68ca28f0daef6d1d585d472182ef29f6dcb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 661 zcmV;G0&4wT7tb}ioI)+#&ed&dz!|Cp3a1#&XlUo zoU+!Xw$`P()~&wQt;626zRtbF&c?&Wt+vLkuDz|UwWX%5l$xcCp0#_1rE`LuYkibj zX@ogplrdeDDOsE;S*0mer7>NlF=3@SWu-Y~tvP9}5J8LxJd6lDga9~%05F6AEQ|m& zi~u-{05p^UEPDtvd&bk}&eP}K-{;=j-sj)m=j-?H@Avoj_y7C%|NsB@`~Uy*?rqHau|D%|sGNb?W z>vVc%zV2pD;7<(U2PSqsh2J$WjiE1-=eN-W#3^Y`2f)mEk{b*mHS`uj2zqZ;P4}b} z3rYR9Dkp$FHvri&X^xzJ+8QJ`fYu9` zUWJ6>dc@5x*MehcK#_ub+qSoIV~7IsnG#rwTd+^@8dm^BhcxRg4_6|i7if|6C@uy3 z7P`3>5tAfhtUB!`qHcMv>$Mp~Wx8s)u56_)F+6WBNU{hy^Db{lF*&$c2kcFB4?61u vTb(DlF+wo0Q`nXiHqk)iS!PKFP53uopK(rSVU8G^00000NkvXXu0mjfKT#~-