Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/unkn0w7n/calibre
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Jun 16, 2024
2 parents 2bc1b40 + 5015765 commit 2affbb5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions recipes/india_today.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ class IndiaToday(BasicNewsRecipe):
section = None
sections = {}

date = soup.find(attrs={'class':lambda x: x and x.startswith('MagazineEdition_edition__date')})
edition = soup.find(attrs={'class':'prime__magazine'})
self.timefmt = '(' + self.tag_to_string(edition).strip() +') [' + self.tag_to_string(date).strip() + ']'
if p := edition.findNext('p'):
self.description = self.tag_to_string(p)
self.log('Downloading Issue: ', self.timefmt)

for tag in soup.findAll('div', attrs={'class': lambda x: x and 'NoCard_story__grid__' in x}):
sec = tag.find('div', attrs={'class': lambda x: x and 'NoCard_header__nav__' in x})
section = self.tag_to_string(sec).strip()
Expand Down

0 comments on commit 2affbb5

Please sign in to comment.