mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 13:15:16 +01:00
HBR - handle two month issues
This commit is contained in:
parent
759998fc4b
commit
c0c6a177aa
1 changed files with 2 additions and 1 deletions
|
|
@ -62,7 +62,8 @@ def hbr_get_toc(self):
|
|||
|
||||
today = date.today()
|
||||
future = today + timedelta(days=30)
|
||||
for x in [x.strftime('%y%m') for x in (future, today)]:
|
||||
past = today - timedelta(days=30)
|
||||
for x in [x.strftime('%y%m') for x in (future, today, past)]:
|
||||
url = self.INDEX + x
|
||||
soup = self.index_to_soup(url)
|
||||
if (not soup.find(text='Issue Not Found') and not soup.find(
|
||||
|
|
|
|||
Loading…
Reference in a new issue