HBR - handle two month issues

This commit is contained in:
Kovid Goyal 2013-02-03 09:10:00 +05:30
parent 759998fc4b
commit c0c6a177aa

View File

@ -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(