From b78aac51ca9dde9539cdddc98454a5234b083eba Mon Sep 17 00:00:00 2001 From: Sophist Date: Sun, 11 Jun 2017 12:06:01 +0100 Subject: [PATCH 1/2] Tweak publication date to match cover date. --- recipes/private_eye.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/private_eye.recipe b/recipes/private_eye.recipe index a0182deab6..bc3c224e7e 100644 --- a/recipes/private_eye.recipe +++ b/recipes/private_eye.recipe @@ -141,7 +141,7 @@ class PrivateEyeRecipe(BasicNewsRecipe): " ".join((day, month, year)), "%d %B %Y" ) - date = date - timedelta(14) + date = date - timedelta(12) self.publication_date = datetime.strftime( date, "%d %B %Y" From ca9a6eec338c75e2d5575c138427a47107c26dbe Mon Sep 17 00:00:00 2001 From: Sophist Date: Sun, 11 Jun 2017 13:29:03 +0100 Subject: [PATCH 2/2] Update comment to match --- recipes/private_eye.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/private_eye.recipe b/recipes/private_eye.recipe index bc3c224e7e..235a36c959 100644 --- a/recipes/private_eye.recipe +++ b/recipes/private_eye.recipe @@ -130,7 +130,7 @@ class PrivateEyeRecipe(BasicNewsRecipe): else: self.log.warning('Cover image NOT found') - # Get publication date as 14 days before next publication date + # Get publication cover date as 12 days before next publication date for tag in soup.findAll('span', {'class': 'only-smallest'}): tag_contents = tag.contents if tag_contents[0].string.lower().split()[:2] == ["next", "issue"]: