From 3b25ebd5f55716d6b4e20965bfb57530e378ffb2 Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Sun, 20 Apr 2025 11:48:56 +0530 Subject: [PATCH] Update hindu.recipe --- recipes/hindu.recipe | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/hindu.recipe b/recipes/hindu.recipe index c69989cec7..75bae3a75c 100644 --- a/recipes/hindu.recipe +++ b/recipes/hindu.recipe @@ -3,7 +3,7 @@ import json import re from collections import defaultdict -from datetime import date, timedelta +from datetime import date from calibre.web.feeds.news import BasicNewsRecipe, classes @@ -40,7 +40,7 @@ class TheHindu(BasicNewsRecipe): 'erode, hyderabad, international, kochi, kolkata,\n' 'kozhikode, madurai, mangalore, mumbai, thiruvananthapuram, ' 'tiruchirapalli, vijayawada, visakhapatnam'), - 'default': 'chennai' + 'default': 'international' }, 'date': { 'short': 'The date of the edition to download (YYYY-MM-DD format)', @@ -76,7 +76,7 @@ class TheHindu(BasicNewsRecipe): past_edition = self.recipe_specific_options.get('date') - dt = date.today() - timedelta(days=1) + dt = date.today() if past_edition and isinstance(past_edition, str): year, month, day = (int(x) for x in past_edition.split('-')) dt = date(year, month, day)