mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
OSEL.cz by spacekpe
Merge branch 'recipe_osel_cz' of https://github.com/spacekpe/calibre
This commit is contained in:
commit
a86fc43ed4
BIN
recipes/icons/osel_cz.png
Normal file
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
28
recipes/osel_cz.recipe
Normal 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
|
Loading…
x
Reference in New Issue
Block a user