~ubuntu-branches/ubuntu/karmic/calibre/karmic

« back to all changes in this revision

Viewing changes to src/calibre/web/feeds/recipes/recipe_bbc.py

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-30 12:49:41 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090730124941-qjdsmri25zt8zocn
Tags: 0.6.3+dfsg-0ubuntu1
* New upstream release. Please see http://calibre.kovidgoyal.net/new_in_6/
  for the list of new features and changes.
* remove_postinstall.patch: Update for new version.
* build_debug.patch: Does not apply any more, disable for now. Might not be
  necessary any more.
* debian/copyright: Fix reference to versionless GPL.
* debian/rules: Drop obsolete dh_desktop call.
* debian/rules: Add workaround for weird Python 2.6 setuptools behaviour of
  putting compiled .so files into src/calibre/plugins/calibre/plugins
  instead of src/calibre/plugins.
* debian/rules: Drop hal fdi moving, new upstream version does not use hal
  any more. Drop hal dependency, too.
* debian/rules: Install udev rules into /lib/udev/rules.d.
* Add debian/calibre.preinst: Remove unmodified
  /etc/udev/rules.d/95-calibre.rules on upgrade.
* debian/control: Bump Python dependencies to 2.6, since upstream needs
  it now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
class BBC(BasicNewsRecipe):
12
12
    title          = u'The BBC'
13
 
    __author__     = 'Kovid Goyal'
 
13
    __author__     = 'Kovid Goyal and Sujata Raman'
14
14
    description    = 'Global news and current affairs from the British Broadcasting Corporation'
15
 
    no_stylesheets = True
16
15
    language = _('English')
17
16
 
18
 
    remove_tags    = [dict(name='div', attrs={'class':'footer'})]
19
 
    extra_css      = '.headline {font-size: x-large;} \n .fact { padding-top: 10pt  }' 
 
17
    remove_tags    = [dict(name='div', attrs={'class':'footer'}),]
 
18
 
 
19
 
 
20
    extra_css      = '''
 
21
                        body{font-family:Arial,Helvetica,sans-serif; font-size:small;}
 
22
                        h1{font-size:large;}
 
23
                     '''
20
24
 
21
25
    feeds          = [
22
 
                      ('News Front Page', 'http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml'), 
 
26
                      ('News Front Page', 'http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml'),
23
27
                      ('Science/Nature', 'http://newsrss.bbc.co.uk/rss/newsonline_world_edition/science/nature/rss.xml'),
24
28
                      ('Technology', 'http://newsrss.bbc.co.uk/rss/newsonline_world_edition/technology/rss.xml'),
25
29
                      ('Enterntainment', 'http://newsrss.bbc.co.uk/rss/newsonline_world_edition/entertainment/rss.xml'),
34
38
                      ('Africa', 'http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml'),
35
39
                    ]
36
40
 
 
41
 
37
42
    def print_version(self, url):
38
43
        return url.replace('http://', 'http://newsvote.bbc.co.uk/mpapps/pagetools/print/')
 
44
 
 
45