From 24df9008df028d49cb8f5db6bec5a443e12d73f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Sat, 6 Oct 2018 23:42:51 +0200 Subject: [PATCH] remove the broken recipe - broken rss --- recipes/icons/telepolis_pl.png | Bin 171 -> 0 bytes recipes/telepolis_pl.recipe | 46 --------------------------------- 2 files changed, 46 deletions(-) delete mode 100644 recipes/icons/telepolis_pl.png delete mode 100644 recipes/telepolis_pl.recipe diff --git a/recipes/icons/telepolis_pl.png b/recipes/icons/telepolis_pl.png deleted file mode 100644 index 234df7ecd06739caaa48df02a2397d7ba7d79fd6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 171 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`MV>B>Ar-fh7iiB|y6_U;k*^9o zsgrXK)SLKBO3F#PF}Kaz&?+uC=uF3PGau*g@)lp}{~tVjVn(A1v%{Lp-MnRzA`?r11t-jFaS?m!3YBwhtEej5gczH@Qs UoK^d`0c~gSboFyt=akR{06MQdasU7T diff --git a/recipes/telepolis_pl.recipe b/recipes/telepolis_pl.recipe deleted file mode 100644 index e1c325091f..0000000000 --- a/recipes/telepolis_pl.recipe +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env python2 - -__license__ = 'GPL v3' - -from calibre.web.feeds.news import BasicNewsRecipe - - -class telepolis(BasicNewsRecipe): - title = u'Telepolis.pl' - __author__ = 'Artur Stachecki , Tomasz Długosz ' - - language = 'pl' - description = u'Twój telekomunikacyjny serwis informacyjny.' - masthead_url = 'http://telepolis.pl/i/telepolis-logo2.gif' - no_stylesheets = True - use_embedded_content = False - - feeds = [ - (u'Wiadomości', u'http://www.telepolis.pl/rss,2,5,0.html') - ] - - keep_only_tags = [ - dict(name='div', attrs={'class': 'flol w510'}), - dict(name='div', attrs={'class': 'main_tresc'}), - dict(name='div', attrs={'class': 'main_tresc_news'}) - ] - - def append_page(self, soup, appendtag): - chpage = appendtag.find(attrs={'class': 'str'}) - if chpage: - for page in chpage.findAll('a'): - if page.renderContents() == 'Następna ›': - break - soup2 = self.index_to_soup(page['href']) - pagetext = soup2.find(attrs={'class': 'main_tresc'}) - pos = len(appendtag.contents) - appendtag.insert(pos, pagetext) - for r in appendtag.findAll(attrs={'class': 'str'}): - r.extract() - - def preprocess_html(self, soup): - self.append_page(soup, soup.body) - for image in soup.findAll('img'): - if 'm.jpg' in image['src']: - image['src'] = image['src'].replace('m.jpg', '.jpg') - return soup