diff --git a/recipes/atlantic.recipe b/recipes/atlantic.recipe index 0733c23895..a8a0d7565b 100644 --- a/recipes/atlantic.recipe +++ b/recipes/atlantic.recipe @@ -81,6 +81,19 @@ class TheAtlantic(BasicNewsRecipe): language = 'en' encoding = 'utf-8' + recipe_specific_options = { + 'date': { + 'short': 'The date of the edition to download (YYYY/MM format)', + 'long': 'For example, 2024/05' + } + } + + def __init__(self, *args, **kwargs): + BasicNewsRecipe.__init__(self, *args, **kwargs) + d = self.recipe_specific_options.get('date') + if d and isinstance(d, str): + self.INDEX = 'https://www.theatlantic.com/magazine/toc/' + d + '/' + keep_only_tags = [ dict(itemprop=['headline']), classes( diff --git a/recipes/harpers.recipe b/recipes/harpers.recipe index 5a502af504..ee83add22c 100644 --- a/recipes/harpers.recipe +++ b/recipes/harpers.recipe @@ -72,7 +72,7 @@ class Harpers(BasicNewsRecipe): edition = self.recipe_specific_options.get('date') if edition and isinstance(edition, str): url = 'https://harpers.org/archive/' + edition - self.timefmt = ' [' +edition + ']' + self.timefmt = ' [' + edition + ']' soup = self.index_to_soup(url) cov_div = soup.find('div', attrs={'class':'issue-cover'}) diff --git a/recipes/hindufeeds.recipe b/recipes/hindufeeds.recipe index dd6c5d39a2..22ee86ac66 100644 --- a/recipes/hindufeeds.recipe +++ b/recipes/hindufeeds.recipe @@ -39,8 +39,6 @@ class TheHindufeeds(BasicNewsRecipe): d = self.recipe_specific_options.get('days') if d and isinstance(d, str): self.oldest_article = float(d) - if self.output_profile.short_name.startswith('kindle'): - self.title = 'The Hindu (Feeds) ' + date.today().strftime('%b %d, %Y') ignore_duplicate_articles = {'url'} diff --git a/recipes/hindustan_times_print.recipe b/recipes/hindustan_times_print.recipe index ea74c099f2..f6bc688aa1 100644 --- a/recipes/hindustan_times_print.recipe +++ b/recipes/hindustan_times_print.recipe @@ -57,7 +57,6 @@ class ht(BasicNewsRecipe): self.timefmt = ' [%s]' % today - day, month, year = (int(x) for x in today.split('/')) today = today.replace('/', '%2F') get_edition = index + '/Home/GetEditionSupplementHierarchy?EditionDate=' + today