From 4892c4d3f45407aeaf039459a9f083ab9e2d5a58 Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Sun, 20 Apr 2025 11:48:41 +0530 Subject: [PATCH 1/2] update econ make web default --- recipes/economist.recipe | 2 +- recipes/economist_free.recipe | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/economist.recipe b/recipes/economist.recipe index 25770f4313..0229b25154 100644 --- a/recipes/economist.recipe +++ b/recipes/economist.recipe @@ -252,7 +252,7 @@ class Economist(BasicNewsRecipe): # downloaded with connection reset by peer (104) errors. delay = 3 - from_archive = False + from_archive = True recipe_specific_options = { 'date': { diff --git a/recipes/economist_free.recipe b/recipes/economist_free.recipe index 25770f4313..0229b25154 100644 --- a/recipes/economist_free.recipe +++ b/recipes/economist_free.recipe @@ -252,7 +252,7 @@ class Economist(BasicNewsRecipe): # downloaded with connection reset by peer (104) errors. delay = 3 - from_archive = False + from_archive = True recipe_specific_options = { 'date': { 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 2/2] 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)