From c4b92cebda901e301123c1f2574df6246bf42553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Tue, 9 Oct 2018 01:08:12 +0200 Subject: [PATCH] remove some broken recipes --- recipes/icons/spiders_web_pl.png | Bin 739 -> 0 bytes recipes/icons/sport_pl.png | Bin 542 -> 0 bytes recipes/spiders_web_pl.recipe | 20 --------- recipes/sport_pl.recipe | 75 ------------------------------- 4 files changed, 95 deletions(-) delete mode 100644 recipes/icons/spiders_web_pl.png delete mode 100644 recipes/icons/sport_pl.png delete mode 100644 recipes/spiders_web_pl.recipe delete mode 100644 recipes/sport_pl.recipe diff --git a/recipes/icons/spiders_web_pl.png b/recipes/icons/spiders_web_pl.png deleted file mode 100644 index c2e65a2b75f16f6a1484780f803bbf5af557fde4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 739 zcmV<90v!E`P)%7L{3)p%}_&qt`VVHEpU<8!gL} z1{IskrBF#T_ceFZMw_|nxZL@7?uTOzSqFZ6+~xew`Od+%s84u{ ziknY`H-71SsXX(@Z2zPK!L7r_*=bQ&h@9>k?HSa!iQT15=+!l&?L{5RZ>U$)XQIYS zWRElrX*w4Gn+T3rb9NLaX0_GPMaVo6j^uqoNOBHD>VXjCoW6$=Sq6%|laY2PRD9)~ z-2c70-JReF=4?-BTGVpv#;_Q8)AV_cn zF+Zq|g>~1&ymXZWOjxz0xkXGg58~^yYUm@iD7ugc)zL5#lu3eC0d}?2gCUlh*y0Bq z{$Uo;f+fMsGW+tl3YxPqP*RO3I^oZXTzn~o=SCZPSyXXZ#Q)4RYCzT9d?f6;%rfBj zTtT6ylII#T%1zm)?y!$TA3LyM5Lon$%=~L!suR0Tic2u`_X~J#tg$aEkJ3}v`56m{2fSsm6}%M(2k zo#e>(P`n=b)MLLkNYfo7pus@a$=ftEL5z37*^+=w9SS@YQuN8X_!4*G&nOdGacKoJ z13xhMz70dQomiL=U^PSE1WM&9&PHLu@Q8Y%HumBqk_?qCrhbnTwNCLsf0{s#UwO zfmt(Va&mB(8=HVM0G%Pk%de)Ux@Y(9AK$RVqjb_e?Cy+ z?c2BQt?g4LO`bY=^0X;aW=xw_T~V2qmZq+(EGa4mbrR4$3=9k#*KGi5`1tYTq6G_A zuUfrk_3E{&SFc~Y7N{pEFp!y%5vUBP7;1w6AHSQ6>%#f-&!0Pg_3G72mo8nteCgcT zbC)k&0-AF2#0j8@N^#K?GH z|A8-GzI;LgUp{~S@ZrO~yLb2Q*&`(;Dk>-h3{0p7elG4!8#k?8yJq>aWy_a?5Rd_k zkooiHXQgLwb8vF8u>+$OXamC2EZ6`m7)gkT0u=yNLo`4WA27(&lz~VEj({RSQ-KJQ g>>voJnB?RQ0D3_8{q68H!2kdN07*qoM6N<$f{NAVk^lez diff --git a/recipes/spiders_web_pl.recipe b/recipes/spiders_web_pl.recipe deleted file mode 100644 index b8c5ffffba..0000000000 --- a/recipes/spiders_web_pl.recipe +++ /dev/null @@ -1,20 +0,0 @@ -from calibre.web.feeds.news import BasicNewsRecipe - - -class SpidersWeb(BasicNewsRecipe): - title = u"Spider's Web" - oldest_article = 7 - __author__ = 'fenuks' - description = u'Autorskie teksty popularnych blogerów, testy sprzętu i aplikacji, oraz wiele więcej.' - cover_url = 'http://www.spidersweb.pl/wp-content/themes/new_sw/images/spidersweb.png' - category = 'IT, WEB' - language = 'pl' - no_stylesheers = True - remove_javascript = True - use_embedded_content = False - max_articles_per_feed = 100 - keep_only_tags = [dict(id='start')] - remove_tags_after = dict(attrs={'class': 'padding20'}) - remove_tags = [dict(name='div', attrs={ - 'class': ['padding border-bottom', 'padding20', 'padding border-top']})] - feeds = [(u'Wpisy', u'http://www.spidersweb.pl/feed')] diff --git a/recipes/sport_pl.recipe b/recipes/sport_pl.recipe deleted file mode 100644 index 0320012605..0000000000 --- a/recipes/sport_pl.recipe +++ /dev/null @@ -1,75 +0,0 @@ -#!/usr/bin/env python2 - -__license__ = 'GPL v3' -__copyright__ = 'teepel 2012' - -''' -sport.pl -''' - -from calibre.web.feeds.news import BasicNewsRecipe - - -class sport_pl(BasicNewsRecipe): - title = 'Sport.pl' - __author__ = 'teepel ' - language = 'pl' - description = u'Największy portal sportowy w Polsce. Wiadomości sportowe z najważniejszych wydarzeń, relacje i wyniki meczów na żywo.' - masthead_url = 'http://press.gazeta.pl/file/mediakit/154509/c8/sportpl.jpg' - oldest_article = 1 - max_articles_per_feed = 100 - remove_javascript = True - no_stylesheets = True - remove_empty_feeds = True - ignore_duplicate_articles = {'title', 'url'} - keep_only_tags = [] - keep_only_tags.append(dict(name='div', attrs={'id': 'article'})) - - remove_tags = [] - remove_tags.append(dict(name='a', attrs={'href': 'www.gazeta.pl'})) - - feeds = [ - (u'Wszystkie wiadomości', u'http://rss.gazeta.pl/pub/rss/sport.xml'), - (u'Piłka nożna', - u'http://www.sport.pl/pub/rss/sport/pilka_nozna.htm'), - (u'F1', u'http://www.sport.pl/pub/rss/sportf1.htm'), - (u'Tenis', u'http://serwisy.gazeta.pl/pub/rss/tenis.htm'), - (u'Siatkówka', u'http://gazeta.pl.feedsportal.com/c/32739/f/611628/index.rss'), - (u'Koszykówka', u'http://gazeta.pl.feedsportal.com/c/32739/f/611647/index.rss'), - (u'Piłka ręczna', - u'http://gazeta.pl.feedsportal.com/c/32739/f/611635/index.rss'), - (u'Inne sporty', u'http://gazeta.pl.feedsportal.com/c/32739/f/611649/index.rss'), - ] - - def parse_feeds(self): - feeds = BasicNewsRecipe.parse_feeds(self) - for feed in feeds: - for article in feed.articles[:]: - if '[ZDJĘCIA]' in article.title: - article.title = article.title.replace('[ZDJĘCIA]', '') - elif '[WIDEO]' in article.title: - article.title = article.title.replace('[WIDEO]', '') - return feeds - - def print_version(self, url): - if 'feedsportal' in url: - segment = url.split('/') - urlPart = segment[-2] - urlPart = urlPart.replace('0L0Ssport0Bpl0C', '') - urlPart = urlPart.replace('0C10H', '/') - urlPart = urlPart.replace('0H', ',') - urlPart = urlPart.replace('0I', '_') - urlPart = urlPart.replace('A', '') - segment1 = urlPart.split('/') - seg1 = segment1[0] - seg2 = segment1[1] - segment2 = seg2.split(',') - part = segment2[0] + ',' + segment2[1] - return 'http://www.sport.pl/' + seg1 + '/2029020,' + part + '.html' - else: - segment = url.split('/') - part2 = segment[-2] - part1 = segment[-1] - segment2 = part1.split(',') - part = segment2[1] + ',' + segment2[2] - return 'http://www.sport.pl/' + part2 + '/2029020,' + part + '.html'