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] 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