From dfe1dcedb601e3be7aeb5f37655dc250cb46bcbc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 9 May 2014 07:39:22 +0530 Subject: [PATCH] Fix #1317635 [News fetching URL for NRC Handelsblad changes every day](https://bugs.launchpad.net/calibre/+bug/1317635) --- recipes/nrc-nl-epub.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/nrc-nl-epub.recipe b/recipes/nrc-nl-epub.recipe index 11830afe6b..2e11be2ebc 100644 --- a/recipes/nrc-nl-epub.recipe +++ b/recipes/nrc-nl-epub.recipe @@ -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 @@ class NRCHandelsblad(BasicNewsRecipe): 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: