Fix #1303331 [News source "NRC Handelsblad" nrc-nl-epub.recipe download URL changed](https://bugs.launchpad.net/calibre/+bug/1303331)

This commit is contained in:
Kovid Goyal 2014-04-06 20:33:37 +05:30
parent 16891b7f47
commit 3047b30f23

View File

@ -42,7 +42,7 @@ class NRCHandelsblad(BasicNewsRecipe):
raise ValueError('Failed to login, check username and password') raise ValueError('Failed to login, check username and password')
epubraw = None epubraw = None
for today in (date.today(), date.today() - timedelta(days=1),): for today in (date.today(), date.today() - timedelta(days=1),):
url = 'http://digitaleeditie.nrc.nl/digitaleeditie/NH/%s/1/%s___/downloads.html' % (today.strftime('%Y'), today.strftime('%Y%m%d')) url = 'http://digitaleeditie.nrc.nl/digitaleeditie/NH/%s/3/%s___/downloads.html' % (today.strftime('%Y'), today.strftime('%Y%m%d'))
self.log('Trying to download epub from:', url) self.log('Trying to download epub from:', url)
br.start_load(url, timeout=60) br.start_load(url, timeout=60)
try: try: