This commit is contained in:
Kovid Goyal 2017-06-11 23:45:51 +05:30
commit d78a123e9f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -130,7 +130,7 @@ class PrivateEyeRecipe(BasicNewsRecipe):
else: else:
self.log.warning('Cover image NOT found') 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'}): for tag in soup.findAll('span', {'class': 'only-smallest'}):
tag_contents = tag.contents tag_contents = tag.contents
if tag_contents[0].string.lower().split()[:2] == ["next", "issue"]: if tag_contents[0].string.lower().split()[:2] == ["next", "issue"]:
@ -141,7 +141,7 @@ class PrivateEyeRecipe(BasicNewsRecipe):
" ".join((day, month, year)), " ".join((day, month, year)),
"%d %B %Y" "%d %B %Y"
) )
date = date - timedelta(14) date = date - timedelta(12)
self.publication_date = datetime.strftime( self.publication_date = datetime.strftime(
date, date,
"%d %B %Y" "%d %B %Y"