OSEL.cz by spacekpe

Merge branch 'recipe_osel_cz' of https://github.com/spacekpe/calibre
This commit is contained in:
Kovid Goyal 2014-12-22 20:43:54 +05:30
commit a86fc43ed4
2 changed files with 28 additions and 0 deletions

BIN
recipes/icons/osel_cz.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 715 B

28
recipes/osel_cz.recipe Normal file
View File

@ -0,0 +1,28 @@
#!/usr/bin/env python
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe
class OselCZ(BasicNewsRecipe):
title = 'OSEL.cz'
oldest_article = 100
max_articles_per_feed = 100
auto_cleanup = True
recursions = 1
language = 'cze'
feeds = [
('OSEL.cz', 'http://www.osel.cz/rss/rss.php'),
]
def print_version(self, url):
return url.replace('http://www.osel.cz/index.php?clanek=', 'http://www.osel.cz/tisk.php?clanek=')
def get_cover_url(self):
return 'http://www.osel.cz/themes/default/logo_osel.gif'
def is_link_wanted(self, url, tag):
if url.startswith('http://www.osel.cz/popisek.php'):
return True
else:
return False