~ubuntu-branches/debian/sid/calibre/sid

« back to all changes in this revision

Viewing changes to recipes/zeitde.recipe

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2014-05-14 18:17:50 UTC
  • mto: This revision was merged to the branch mainline in revision 75.
  • Revision ID: package-import@ubuntu.com-20140514181750-efj1wymey2vb4cao
Tags: upstream-1.36.0+dfsg
ImportĀ upstreamĀ versionĀ 1.36.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
class ZeitDe(BasicNewsRecipe):
11
11
 
12
 
    __author__            = 'Armin Geller'    # AGe 2014-01-09
 
12
    __author__            = 'Armin Geller'    # AGe 2014-02-26
13
13
    title                 = u'Zeit Online'
14
14
    description           = u'German  online portal of newspaper Die Zeit'
15
15
    publisher             = 'ZEIT ONLINE GmbH'
27
27
    masthead_url          = 'http://images.zeit.de/static/img/logo_247x30.png'
28
28
 
29
29
    year = str(date.today().isocalendar()[0])  # [0]=year [1]=week number [2]=week day
30
 
    week = str(date.today().isocalendar()[1]+1).zfill(3)  # AGE 2014-01-09: week needs 3 digits with prefix 0
31
 
 
 
30
    # week = str(date.today().isocalendar()[1]+1).zfill(3) # AGE 2014-01-09: week needs 3 digits with prefix 0
 
31
    week = str(date.today().isocalendar()[1]).zfill(3)  # AGE 2014-02-26: week
32
32
    cover_url = 'http://images.zeit.de/bilder/titelseiten_zeit/titelfluss/'  + year + '/'+ week + '_001.jpg'  # AGE 2014-01-09
33
33
 
34
34
    extra_css = '.caption {font-size: 0.9em; font-style: italic; } \