mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-10 13:40:16 +01:00
Fix #1317635 [News fetching URL for NRC Handelsblad changes every day](https://bugs.launchpad.net/calibre/+bug/1317635)
This commit is contained in:
parent
24299b12a4
commit
dfe1dcedb6
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python2
|
||||
# -*- coding: utf-8 -*-
|
||||
#Based on veezh's original recipe and Kovid Goyal's New York Times recipe
|
||||
# Based on veezh's original recipe and Kovid Goyal's New York Times recipe
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2011, Snaab'
|
||||
|
|
@ -42,7 +42,7 @@ def build_index(self):
|
|||
raise ValueError('Failed to login, check username and password')
|
||||
epubraw = None
|
||||
for today in (date.today(), date.today() - timedelta(days=1),):
|
||||
url = 'http://digitaleeditie.nrc.nl/digitaleeditie/NH/%s/3/%s___/downloads.html' % (today.strftime('%Y'), today.strftime('%Y%m%d'))
|
||||
url = 'http://digitaleeditie.nrc.nl/digitaleeditie/NH/%s/%d/%s___/downloads.html' % (today.strftime('%Y'), today.month - 1, today.strftime('%Y%m%d'))
|
||||
self.log('Trying to download epub from:', url)
|
||||
br.start_load(url, timeout=60)
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue