From 33ba364a6dddc7bdb90ac3185a16a87de7ff7e68 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 31 Jul 2025 10:59:27 -0500 Subject: updating calibre config --- .../custom_recipes/The New York Times_1000.recipe | 18 ++-- dotfiles/system/.config/calibre/scheduler.xml | 116 ++++++++++++++++++++- 2 files changed, 122 insertions(+), 12 deletions(-) (limited to 'dotfiles') diff --git a/dotfiles/system/.config/calibre/custom_recipes/The New York Times_1000.recipe b/dotfiles/system/.config/calibre/custom_recipes/The New York Times_1000.recipe index 63df3fd..db3c40b 100644 --- a/dotfiles/system/.config/calibre/custom_recipes/The New York Times_1000.recipe +++ b/dotfiles/system/.config/calibre/custom_recipes/The New York Times_1000.recipe @@ -16,7 +16,7 @@ from calibre.utils.date import strptime from calibre.web.feeds.news import BasicNewsRecipe from polyglot.urllib import urlencode -is_web_edition = False +is_web_edition = True use_wayback_machine = False # This is an Apollo persisted query hash which you can get @@ -33,12 +33,12 @@ web_sections = [ # ('New York', 'nyregion'), ('Business', 'business'), ('Technology', 'technology'), - # ('Sports', 'sports'), + ('Sports', 'sports'), ('Science', 'science'), ('Health', 'health'), ('Opinion', 'opinion'), # ('Arts', 'arts'), - # ('Books', 'books'), + ('Books', 'books'), # ('Movies', 'movies'), # ('Music', 'arts/music'), # ('Television', 'arts/television'), @@ -46,10 +46,10 @@ web_sections = [ # ('Dining & Wine', 'food'), # ('Fashion & Style', 'fashion'), # ('Home & Garden', 'garden'), - ('Travel', 'travel'), - # ('Education', 'education'), - # ('Multimedia', 'multimedia'), - # ('Obituaries', 'obituaries'), + # ('Travel', 'travel'), + ('Education', 'education'), + # ('Multimedia', 'multimedia'), + ('Obituaries', 'obituaries'), # ('Sunday Magazine', 'magazine') ] # web_sections = [ ('Business', 'business'), ] @@ -100,7 +100,7 @@ class NewYorkTimes(BasicNewsRecipe): language = 'en_US' ignore_duplicate_articles = {'title', 'url'} no_stylesheets = True - oldest_web_edition_article = 7 # days + oldest_web_edition_article = 1 # days extra_css = ''' .byl, .time { font-size:small; color:#202020; } @@ -365,4 +365,4 @@ if __name__ == '__main__': parse_todays_page(data) -calibre_most_common_ua = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36' \ No newline at end of file +calibre_most_common_ua = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36' diff --git a/dotfiles/system/.config/calibre/scheduler.xml b/dotfiles/system/.config/calibre/scheduler.xml index f3c64a3..bee54fe 100644 --- a/dotfiles/system/.config/calibre/scheduler.xml +++ b/dotfiles/system/.config/calibre/scheduler.xml @@ -1,12 +1,122 @@ - 0,1,2,3,4,5,6:6:0 + + + + + + + + + + + + + + + - 0,1,2,3,4,5,6:6:0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1:6:0 + + + + 1:6:0 + + + + 30.000000 + + + + 3:6:0 + + + + 60.000000 + + + + 15:0:0 + + + + 1:6:0 + + + + 5:6:0 + + + + 6:6:0 + + + + 4:6:0 + + + + 5:6:0 + + + + 0,1,2,3,4,5,6:6:0 - + \ No newline at end of file -- cgit v1.2.3