mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
HBR - handle two month issues
This commit is contained in:
parent
759998fc4b
commit
c0c6a177aa
@ -62,7 +62,8 @@ class HBR(BasicNewsRecipe):
|
|||||||
|
|
||||||
today = date.today()
|
today = date.today()
|
||||||
future = today + timedelta(days=30)
|
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
|
url = self.INDEX + x
|
||||||
soup = self.index_to_soup(url)
|
soup = self.index_to_soup(url)
|
||||||
if (not soup.find(text='Issue Not Found') and not soup.find(
|
if (not soup.find(text='Issue Not Found') and not soup.find(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user