mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Merge branch 'patch-6' of https://github.com/Sophist-UK/calibre
This commit is contained in:
commit
d78a123e9f
@ -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"]:
|
||||
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user