~ubuntu-branches/debian/wheezy/calibre/wheezy

« back to all changes in this revision

Viewing changes to recipes/astro_news_pl.recipe

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2012-01-07 11:22:54 UTC
  • mfrom: (29.4.10 precise)
  • Revision ID: package-import@ubuntu.com-20120107112254-n1syr437o46ds802
Tags: 0.8.34+dfsg-1
* New upstream version. (Closes: #654751)
* debian/rules: Do not install calibre copy of chardet; instead, add
  build/binary python-chardet dependency.
* Add disable_plugins.py: Disable plugin dialog. It uses a totally
  non-authenticated and non-trusted way of installing arbitrary code.
  (Closes: #640026)
* debian/rules: Install with POSIX locale, to avoid installing translated
  manpages into the standard locations. (Closes: #646674)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from calibre.web.feeds.news import BasicNewsRecipe
2
 
 
3
2
class AstroNEWS(BasicNewsRecipe):
4
3
    title          = u'AstroNEWS'
5
4
    __author__        = 'fenuks'
8
7
    language       = 'pl'
9
8
    oldest_article = 8
10
9
    max_articles_per_feed = 100
11
 
    auto_cleanup = True
 
10
    #extra_css= 'table {text-align: left;}'
 
11
    no_stylesheets=True
12
12
    cover_url='http://news.astronet.pl/img/logo_news.jpg'
13
 
   # no_stylesheets= True
 
13
    remove_tags=[dict(name='hr')]
14
14
    feeds          = [(u'Wiadomości', u'http://news.astronet.pl/rss.cgi')]
15
15
 
16
16
    def print_version(self, url):
17
17
        return url.replace('astronet.pl/', 'astronet.pl/print.cgi?')
18
18
 
 
19
    def preprocess_html(self, soup):
 
20
        for item in soup.findAll(align=True):
 
21
            del item['align']
 
22
        return soup