From 45b5171147816220cc4996b62361956c44e2370e Mon Sep 17 00:00:00 2001 From: ping Date: Wed, 13 Sep 2023 20:49:16 +0800 Subject: [PATCH 1/2] Disable WSJ due to HTTP308 redirects --- _recipes.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/_recipes.py b/_recipes.py index bd9d0a28..4a765eca 100644 --- a/_recipes.py +++ b/_recipes.py @@ -752,17 +752,17 @@ # enable_on=(first_n_days_of_month(7) or last_n_days_of_month(7)) # and onlyat_hours(list(range(4, 12))), # ), - Recipe( - recipe="wsj-paper", - slug="wsj-print", - src_ext="mobi", - target_ext=["epub"], - category="News", - tags=["business"], - timeout=300, - enable_on=onlyat_hours(list(range(0, 8)), -4), - cover_options=CoverOptions( - logo_path_or_url="https://upload.wikimedia.org/wikipedia/commons/thumb/4/4a/WSJ_Logo.svg/1024px-WSJ_Logo.svg.png" - ), - ), + # Recipe( + # recipe="wsj-paper", + # slug="wsj-print", + # src_ext="mobi", + # target_ext=["epub"], + # category="News", + # tags=["business"], + # timeout=300, + # enable_on=onlyat_hours(list(range(0, 8)), -4), + # cover_options=CoverOptions( + # logo_path_or_url="https://upload.wikimedia.org/wikipedia/commons/thumb/4/4a/WSJ_Logo.svg/1024px-WSJ_Logo.svg.png" + # ), + # ), ] From 55716140ef725a2040f24288d6de1a6eb9c78bd3 Mon Sep 17 00:00:00 2001 From: ping Date: Wed, 13 Sep 2023 23:20:56 +0800 Subject: [PATCH 2/2] FT Print no longer available [skip ci] --- _recipes.py | 11 ----------- recipes/ft-paper.recipe.py | 4 ++++ 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/_recipes.py b/_recipes.py index 4a765eca..68fc5ebf 100644 --- a/_recipes.py +++ b/_recipes.py @@ -238,17 +238,6 @@ logo_path_or_url="https://www.ft.com/partnercontent/content-hub/static/media/ft-horiz-new-black.215c1169.png" ), ), - Recipe( - recipe="ft-paper", - slug="ft-print", - src_ext="mobi", - target_ext=["epub"], - category="News", - tags=["business"], - cover_options=CoverOptions( - logo_path_or_url="https://www.ft.com/partnercontent/content-hub/static/media/ft-horiz-new-black.215c1169.png" - ), - ), Recipe( recipe="fulcrum-sg", slug="fulcrum-sg", diff --git a/recipes/ft-paper.recipe.py b/recipes/ft-paper.recipe.py index 0bc058ab..3598ede9 100644 --- a/recipes/ft-paper.recipe.py +++ b/recipes/ft-paper.recipe.py @@ -1,6 +1,10 @@ """ ft.com """ +# ------------------------------ +# 2023-09-05 No longer working +# ------------------------------ + # Original from https://github.com/kovidgoyal/calibre/blob/902e80ec173bc40037efb164031043994044ec6c/recipes/financial_times_print_edition.recipe import os