mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
now use datetime.utcnow() and add one hour for Germany
This commit is contained in:
parent
a5a585b204
commit
975080a0f1
@ -13,7 +13,7 @@ szmobil.sueddeutsche.de/
|
|||||||
# 2012.08.04 Initial release
|
# 2012.08.04 Initial release
|
||||||
|
|
||||||
from calibre import strftime
|
from calibre import strftime
|
||||||
from time import localtime
|
import datetime
|
||||||
from calibre.web.feeds.recipes import BasicNewsRecipe
|
from calibre.web.feeds.recipes import BasicNewsRecipe
|
||||||
import re
|
import re
|
||||||
|
|
||||||
@ -26,8 +26,7 @@ class SZmobil(BasicNewsRecipe):
|
|||||||
language = u'de'
|
language = u'de'
|
||||||
publication_type = u'newspaper'
|
publication_type = u'newspaper'
|
||||||
category = u'news, politics, Germany'
|
category = u'news, politics, Germany'
|
||||||
lt = localtime()
|
cover_url = 'https://zeitung.sueddeutsche.de/szdigital/public/issue/previewimage?size=l&issueId=' + (datetime.datetime.utcnow()+datetime.timedelta(hours=1)).strftime("%Y-%m-%d") + '&targetVersion=3&productId=sz'
|
||||||
cover_url = 'https://zeitung.sueddeutsche.de/szdigital/public/issue/previewimage?size=l&issueId=' + strftime("%Y-%m-%d", lt) + '&targetVersion=3&productId=sz
|
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
oldest_article = 2
|
oldest_article = 2
|
||||||
encoding = 'iso-8859-1'
|
encoding = 'iso-8859-1'
|
||||||
|
@ -9,8 +9,8 @@ www.sueddeutsche.de/sz/
|
|||||||
# 2014.10.02 Fixed url Problem by lala-rob(web@lala-rob.de)
|
# 2014.10.02 Fixed url Problem by lala-rob(web@lala-rob.de)
|
||||||
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
from calibre import strftime
|
from calibre import gmtime
|
||||||
from time import localtime
|
import datetime
|
||||||
|
|
||||||
class SueddeutcheZeitung(BasicNewsRecipe):
|
class SueddeutcheZeitung(BasicNewsRecipe):
|
||||||
title = u'Süddeutsche Zeitung'
|
title = u'Süddeutsche Zeitung'
|
||||||
@ -24,8 +24,7 @@ class SueddeutcheZeitung(BasicNewsRecipe):
|
|||||||
needs_subscription = True
|
needs_subscription = True
|
||||||
remove_empty_feeds = True
|
remove_empty_feeds = True
|
||||||
delay = 1
|
delay = 1
|
||||||
lt = localtime()
|
cover_url = 'https://zeitung.sueddeutsche.de/szdigital/public/issue/previewimage?size=l&issueId=' + (datetime.datetime.utcnow()+datetime.timedelta(hours=1)).strftime("%Y-%m-%d") + '&targetVersion=3&productId=sz'
|
||||||
cover_url = 'https://zeitung.sueddeutsche.de/szdigital/public/issue/previewimage?size=l&issueId=' + strftime("%Y-%m-%d", lt) + '&targetVersion=3&productId=sz
|
|
||||||
PREFIX = 'http://epaper.sueddeutsche.de'
|
PREFIX = 'http://epaper.sueddeutsche.de'
|
||||||
INDEX = PREFIX + '/app/epaper/textversion/'
|
INDEX = PREFIX + '/app/epaper/textversion/'
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user