From 127b6e2432da24bfd00579d22b1e6999edf9ab78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Wed, 5 Oct 2016 20:51:39 +0200 Subject: [PATCH 1/3] recipes: remove 7th guard - site broken and no content for months --- recipes/seventh_guard.recipe | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 recipes/seventh_guard.recipe diff --git a/recipes/seventh_guard.recipe b/recipes/seventh_guard.recipe deleted file mode 100644 index 90fe5c886f..0000000000 --- a/recipes/seventh_guard.recipe +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -from calibre.web.feeds.news import BasicNewsRecipe -import re - -__license__ = 'GPL v3' - - -class SeventhGuard(BasicNewsRecipe): - title = '7th Guard' - description = u""" 7thGuard.net jest jednym z najstarszych w polskiej części internetu serwisem poświęconym otwartości standardów, -wolności oprogramowania, szeroko pojętych wolności w internecie, walce z praktykami monopolistycznymi w świecie informatyki oraz -– co jest coraz ważniejsze w dzisiejszym świecie – rozwojowi społeczeństwa informacyjnego.""" - __author__ = 'koliberek' - masthead_url = 'http://beta.7thguard.net/wp-content/uploads/2013/05/7thguard-bladerunner-logo1.png' - cover_url = 'http://beta.7thguard.net/wp-content/uploads/2013/05/7thguard-bladerunner-logo1.png' - language = 'pl' - oldest_article = 7 - max_articles_per_feed = 100 - timefmt = ' [%A, %d %B %Y]' - auto_cleanup = True - remove_javascript = True - no_stylesheets = True - remove_empty_feeds = True - conversion_options = {'smarten_punctuation': True} - extra_css = """h2 {font-size:12pt; font-family:Arial,Helvetica,sans serif;} -h1 {font-size:14pt; font-family:Arial,Helvetica,sans serif;} -p {text-align:justify;} -.article, .feed, .calibre_feed_description, .article_description {font-family:Arial,Helvetica,sans serif;} -.article_description {text-style:italic;} -""" - remove_attributes = ['border', 'cellspacing', 'align', 'cellpadding', - 'colspan', 'valign', 'vspace', 'hspace', 'alt', 'width', 'height', 'font'] - preprocess_regexps = [(re.compile(r'', re.IGNORECASE), lambda m: ''), - (re.compile(r'', re.IGNORECASE), lambda m: '')] - - feeds = [(u'Aktualno\u015bci', u'http://7thguard.net/feed/')] From 0a43b22aeb27b72beac9416c0daee187366d48eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Wed, 5 Oct 2016 21:07:50 +0200 Subject: [PATCH 2/3] recipes: remove applefobia for no new content over last year --- recipes/applefobia.recipe | 23 ----------------------- recipes/icons/applefobia.png | Bin 312 -> 0 bytes 2 files changed, 23 deletions(-) delete mode 100644 recipes/applefobia.recipe delete mode 100644 recipes/icons/applefobia.png diff --git a/recipes/applefobia.recipe b/recipes/applefobia.recipe deleted file mode 100644 index 4fecdb8d95..0000000000 --- a/recipes/applefobia.recipe +++ /dev/null @@ -1,23 +0,0 @@ -# vim:fileencoding=UTF-8 -from __future__ import unicode_literals -from calibre.web.feeds.news import BasicNewsRecipe - - -class BasicUserRecipe1395137685(BasicNewsRecipe): - title = u'Applefobia' - __author__ = 'koliberek' - oldest_article = 7 - max_articles_per_feed = 100 - auto_cleanup = True - language = 'pl' - remove_empty_feeds = True - remove_javascript = True - conversion_options = { - 'tags': u'newsy, Apple, humor', - 'smarten_punctuation': True, - 'authors': 'Ogrodnik January', - 'publisher': 'Blogspot.pl' - } - reverse_article_order = True - - feeds = [(u'Aktualne', u'http://applefobia.blogspot.com/feeds/posts/default')] diff --git a/recipes/icons/applefobia.png b/recipes/icons/applefobia.png deleted file mode 100644 index 9cf29f25be9c7aa5107582b8d5d8731e6e0b62d0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 312 zcmV-80muG{P)e+UC;OKnIrZsA(GHa$XX{Ir0rY~xxF>0kR zYosx1q%&!xF#O!Mg8%>ken~_@RCoaezy)%`0002Njnv(pgbVQhCw6pfSJmfT)v8)s zJ3O6jRjI0)I~{9Hr>gz#ua+vcg@;FcR4Qhe_$o^m7%@(h(!ziNd}n`+8Sva@!!V8G z49hVmj1w3fO28#}D~Bua0xT&Q-T|p!Gw#9Rr0SN}-Ou@aQ~d+Gx)53oL~dyS0000< KMNUMnLSTZmC7Buk From 3e108676e17a4ef5f8a3567d3f612dad59a89fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Wed, 5 Oct 2016 21:15:58 +0200 Subject: [PATCH 3/3] recipes: remove emuzyka.pl - this site is no more --- recipes/emuzica_pl.recipe | 29 ----------------------------- recipes/icons/emuzica_pl.png | Bin 478 -> 0 bytes 2 files changed, 29 deletions(-) delete mode 100644 recipes/emuzica_pl.recipe delete mode 100644 recipes/icons/emuzica_pl.png diff --git a/recipes/emuzica_pl.recipe b/recipes/emuzica_pl.recipe deleted file mode 100644 index 50a85264fa..0000000000 --- a/recipes/emuzica_pl.recipe +++ /dev/null @@ -1,29 +0,0 @@ -# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai - -from calibre.web.feeds.news import BasicNewsRecipe - - -class eMuzyka(BasicNewsRecipe): - title = u'eMuzyka' - __author__ = 'fenuks' - description = u'Emuzyka to największa i najpopularniejsza strona o muzyce w Polsce' - category = 'music' - language = 'pl' - index = 'http://www.emuzyka.pl' - cover_url = 'http://s.emuzyka.pl/img/emuzyka_invert_small.jpg' - no_stylesheets = True - oldest_article = 7 - remove_empty_feeds = True - max_articles_per_feed = 100 - remove_attributes = ['style'] - keep_only_tags = [dict(name='div', attrs={'id': 'news_container'}), dict( - name='h3'), dict(name='div', attrs={'class': 'review_text'})] - remove_tags = [dict(name='span', attrs={'id': 'date'})] - feeds = [(u'Aktualno\u015bci', u'http://www.emuzyka.pl/rss.php?f=1'), - (u'Recenzje', u'http://www.emuzyka.pl/rss.php?f=2')] - - def preprocess_html(self, soup): - for a in soup('a'): - if a.has_key('href') and 'http://' not in a['href'] and 'https://' not in a['href']: # noqa - a['href'] = self.index + a['href'] - return soup diff --git a/recipes/icons/emuzica_pl.png b/recipes/icons/emuzica_pl.png deleted file mode 100644 index 60ebd752bff232bc2c239d77d1f0d2148926aa50..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 478 zcmV<40U`d0P)+E?OX?Ab*3GCoQ(lHv_Vr9khe} z^%hMuRZ&x&*k}w*uBDLIj!q{`mz#>T*A|l$h1z7z6D=+?Q{D ziwphz`I`aA7UKP-D*GRzjN#=GWi)hjxvIO1hO)Z4uAY{Gkv33d&jR)Pd!e!n&kxF> zAuCHYB~?{b4GlFdElnM5pvb*l3UFDbe}8`?qwhcdJb(3<5e66-7=HZt!_M*(u7Kh3 zZc#Mk=b@^iuCAu3siCc%5UznHi*5rDb!NT|a`5>QXaE2J