From fd5bbc6c9f3025a1d1f4b65c991902c342501fdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Sun, 5 Nov 2017 20:19:01 +0100 Subject: [PATCH 1/3] remove broken interia recipes --- recipes/icons/interia_fakty.png | Bin 410 -> 0 bytes recipes/icons/interia_sport.png | Bin 410 -> 0 bytes recipes/interia_fakty.recipe | 66 -------------------------------- recipes/interia_sport.recipe | 66 -------------------------------- 4 files changed, 132 deletions(-) delete mode 100644 recipes/icons/interia_fakty.png delete mode 100644 recipes/icons/interia_sport.png delete mode 100644 recipes/interia_fakty.recipe delete mode 100644 recipes/interia_sport.recipe diff --git a/recipes/icons/interia_fakty.png b/recipes/icons/interia_fakty.png deleted file mode 100644 index 1083d53534912dc7e9c584b3ce22c7c0dbd4ee8a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 410 zcmV;L0cHM)P)?0|4*t=`M+bTIGDYpRqp@PDrGP`z{MKG2O0hWWWX*U1`FzHy8nN?jRUSICB)=^ zSE2fUVbOs9-;Xi=KfjD0EVr^#2Ihr_AOp^TIAY@dAPpc%u%b0R(*G@uod3u9oBemU zwF4=JyWqhVPM86gKnC2qx|$ax0rppMy#9X~8DFqh1cd|tYp8nuuglN|Yl!wW|1U4+ zgB*y*Kn8rC*P!s9n=knPrImdDZA_d%&Id_?G=mL3JWm+J2Zv2!kSVeO+ZkYqhfKT_ z>;(!8Xa^b4OO9r!%e6oTa02m6VqF4F_6LC24~QuT07f48w@}=H@c;k-07*qoM6N<$ Eg45Zz=Kufz diff --git a/recipes/icons/interia_sport.png b/recipes/icons/interia_sport.png deleted file mode 100644 index 1083d53534912dc7e9c584b3ce22c7c0dbd4ee8a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 410 zcmV;L0cHM)P)?0|4*t=`M+bTIGDYpRqp@PDrGP`z{MKG2O0hWWWX*U1`FzHy8nN?jRUSICB)=^ zSE2fUVbOs9-;Xi=KfjD0EVr^#2Ihr_AOp^TIAY@dAPpc%u%b0R(*G@uod3u9oBemU zwF4=JyWqhVPM86gKnC2qx|$ax0rppMy#9X~8DFqh1cd|tYp8nuuglN|Yl!wW|1U4+ zgB*y*Kn8rC*P!s9n=knPrImdDZA_d%&Id_?G=mL3JWm+J2Zv2!kSVeO+ZkYqhfKT_ z>;(!8Xa^b4OO9r!%e6oTa02m6VqF4F_6LC24~QuT07f48w@}=H@c;k-07*qoM6N<$ Eg45Zz=Kufz diff --git a/recipes/interia_fakty.recipe b/recipes/interia_fakty.recipe deleted file mode 100644 index 278e5c217f..0000000000 --- a/recipes/interia_fakty.recipe +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/env python2 - -__license__ = 'GPL v3' -__copyright__ = u'2010-2015, Tomasz Dlugosz ' -''' -fakty.interia.pl -''' -import re -from calibre.web.feeds.news import BasicNewsRecipe - - -class InteriaFakty(BasicNewsRecipe): - title = u'Interia.pl - Fakty' - description = u'Fakty ze strony interia.pl' - language = 'pl' - oldest_article = 1 - __author__ = u'Tomasz D\u0142ugosz' - no_stylesheets = True - remove_javascript = True - remove_empty_feeds = True - use_embedded_content = False - ignore_duplicate_articles = {'title', 'url'} - - feeds = [(u'Kraj', u'http://kanaly.rss.interia.pl/kraj.xml'), - (u'\u015awiat', u'http://kanaly.rss.interia.pl/swiat.xml'), - (u'Wiadomo\u015bci dnia', - u'http://kanaly.rss.interia.pl/fakty.xml'), - (u'Przegl\u0105d prasy', - u'http://kanaly.rss.interia.pl/przeglad_prasy.xml'), - (u'Wywiady', u'http://kanaly.rss.interia.pl/wywiady.xml'), - (u'Ciekawostki', u'http://kanaly.rss.interia.pl/ciekawostki.xml')] - - keep_only_tags = [ - dict(name='h1'), - dict(name='div', attrs={'class': ['lead textContent fontSize-medium', 'text textContent fontSize-medium', 'source']})] - - remove_tags = [ - dict(name='div', attrs={'class': ['embed embedAd', 'REMOVE', 'boxHeader']})] - - preprocess_regexps = [ - (re.compile(i[0], re.IGNORECASE | re.DOTALL), i[1]) for i in - [ - (r'embed embed(Left|Right|Center) articleEmbed(Audio|Wideo articleEmbedVideo|ArticleFull|ArticleTitle|ArticleListTitle|AlbumHorizontal)">', lambda match: 'REMOVE">'), # noqa - (r' ', lambda match: ''), - (r'embed embed(Left|Right|Center) articleEmbed(Audio|Wideo articleEmbedVideo|ArticleFull|ArticleTitle|ArticleListTitle|AlbumHorizontal)">', lambda match: 'REMOVE">'), # noqa - (r'
', lambda match: ''), - (r'

Date: Sun, 5 Nov 2017 20:32:33 +0100 Subject: [PATCH 2/3] removing ittechblog.pl No new content since months --- recipes/icons/ittechblog.png | Bin 564 -> 0 bytes recipes/ittechblog.recipe | 28 ---------------------------- 2 files changed, 28 deletions(-) delete mode 100644 recipes/icons/ittechblog.png delete mode 100644 recipes/ittechblog.recipe diff --git a/recipes/icons/ittechblog.png b/recipes/icons/ittechblog.png deleted file mode 100644 index a87eefa0b9895a1760ce5c3b4f878cddedfe71c9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 564 zcmV-40?Yl0P)hGk=3{K>o7ZtuqhIyn5%Q5fC#VV>tNo?I%~mw0-lU6cNU0^&1X;`~Hgqh#>}mYz9e?f?I%I0%C}t z(Vabi!@06kmmfPgC(nPM(YR@ER`X_Tc=zjfUnCenenL0>&ZD;)K+FJi>fxIYUh4oc z11JE|@q?%DR2V>^jc&lMW4A+Qt~y-@_3z<_&)zFx^G0yNit7wO#&2XnkawQF`XrN5 zw*efeeG8BFZ$Er13Y!78adW;iSVW;3;GMbn@y}nsnShdCL42U*i0=7^C*m;RE65AC zkp)Y8cC5X2_mu&R5AtVX&AQ{*3z1AQ?OV4ZtL>V5crpXTHbgX@z53J!7Bg1SvwngS%;_sn?0)_J!vw?(_6c)8gXDl- z{|kyCP&xv+0;b_NC{;$5uDT2}FuH8@c~C-Ixbb|+oV8~vU}>gf&Y`J53`vQgw4K(t z@nBr#n$w@Z{NRBFEG`U6NZ)__Vgq7CW&%2u?a0{&9w6sp(*$!i(BD&Gnn4%?JbC$1 z4x}g)7{a#kb3WSvad^qftKIVsPrm)|jTR6yAY%YDmNztjh(dAz0000 Date: Sun, 5 Nov 2017 20:38:24 +0100 Subject: [PATCH 3/3] fix feed URL for geopolityka.org --- recipes/geopolityka.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/geopolityka.recipe b/recipes/geopolityka.recipe index 26a71ec0a6..38326f51af 100644 --- a/recipes/geopolityka.recipe +++ b/recipes/geopolityka.recipe @@ -9,4 +9,4 @@ class BasicUserRecipe1361379046(BasicNewsRecipe): max_articles_per_feed = 100 auto_cleanup = True - feeds = [(u'Rss', u'http://geopolityka.org/index.php?format=feed&type=rss')] + feeds = [(u'Rss', u'http://geopolityka.org/component/k2/itemlist?format=feed&moduleID=200')]