From ab4a5993071ffec07633bd0aa3cf97e3eeeb502a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Mon, 21 Oct 2019 22:58:47 +0200 Subject: [PATCH] remove recipe for no new content since march --- recipes/bash_org_pl.recipe | 51 ---------------------------------- recipes/icons/bash_org_pl.png | Bin 473 -> 0 bytes 2 files changed, 51 deletions(-) delete mode 100644 recipes/bash_org_pl.recipe delete mode 100644 recipes/icons/bash_org_pl.png diff --git a/recipes/bash_org_pl.recipe b/recipes/bash_org_pl.recipe deleted file mode 100644 index 9e48d5a22f..0000000000 --- a/recipes/bash_org_pl.recipe +++ /dev/null @@ -1,51 +0,0 @@ -from calibre.web.feeds.news import BasicNewsRecipe - - -class Bash_org_pl(BasicNewsRecipe): - title = u'Bash.org.pl' - __author__ = 'fenuks' - description = 'Bash.org.pl - zabawne cytaty z IRC' - category = 'funny quotations, humour' - language = 'pl' - cover_url = u'http://userlogos.org/files/logos/dzikiosiol/none_0.png' - max_articles_per_feed = 50 - no_stylesheets = True - keep_only_tags = [dict(name='a', attrs={'class': 'qid click'}), - dict(name='div', attrs={'class': 'quote post-content post-body'})] - - def latest_articles(self): - articles = [] - soup = self.index_to_soup(u'http://bash.org.pl/latest/') - tags = soup.findAll('a', attrs={'class': 'qid click'}) - for a in tags: - title = a.string - url = 'http://bash.org.pl' + a['href'] - articles.append({'title': title, - 'url': url, - 'date': '', - 'description': '' - }) - return articles - - def random_articles(self): - articles = [] - for i in range(self.max_articles_per_feed): - soup = self.index_to_soup(u'http://bash.org.pl/random/') - url = soup.find('a', attrs={'class': 'qid click'}) - title = '' - url = 'http://bash.org.pl/random/' - articles.append({'title': title, - 'url': url, - 'date': '', - 'description': '' - }) - return articles - - def populate_article_metadata(self, article, soup, first): - article.title = soup.find(attrs={'class': 'qid click'}).string - - def parse_index(self): - feeds = [] - feeds.append((u"Najnowsze", self.latest_articles())) - feeds.append((u"Losowe", self.random_articles())) - return feeds diff --git a/recipes/icons/bash_org_pl.png b/recipes/icons/bash_org_pl.png deleted file mode 100644 index 70b31ddc0488bb5ab948816561f20d0ebda228c3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 473 zcmV;~0Ve*5P)GkTlR3mZnxom{??%OgEJ_RZ1<2)Q{3>GsNq| zVLN--Z|6K`XMxa!2n5n0olXaLVzvgr5~jBHcJ^4><2~4BXfz*yPjVjjll)S8FTH-r zC(%=Kad931eQ-{@)G61xwR*qK$9a+@wcbEe0mL|LrM3$6>U@G<-!w87v&mv!+gK+E z5}^rzb=X7|fXG#HSs^R7B#67>z4yqsir2;gtHUO#fbyfL*P0AT4+_?*pH+V-s9#M?1w4C33SUjT?kF{01>@SEMdG%;b`hYJ1M@2w8ab~p7fwV59LmozllatF{v#n z-9PKGbP^j3W594q^0(aRHyZuAX6ZqEWH=MNJ+d0C)smN=#g+(@37+$pnJb|w2+d+L zb8U6I;Kz?IpPr(27@9RPy9^B@q6`K|c3B1+jWB@8Z3PY18w43>_&BOxb4!909nsA_ P00000NkvXXu0mjfd|uCH