From a6c82e1badbbd8fd0b7d75ba79ed07f50e967ed6 Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:36:38 +0530 Subject: [PATCH] ... --- recipes/new_yorker.recipe | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/recipes/new_yorker.recipe b/recipes/new_yorker.recipe index 3dca0ccb0d..352e7f26c8 100644 --- a/recipes/new_yorker.recipe +++ b/recipes/new_yorker.recipe @@ -18,9 +18,7 @@ class NewYorker(BasicNewsRecipe): title = "The New Yorker Magazine" description = "Articles of the week's New Yorker magazine" - - url_list = [] - language = 'en' + language = 'en_US' __author__ = 'Kovid Goyal' no_stylesheets = True timefmt = ' [%b %d]' @@ -49,15 +47,6 @@ class NewYorker(BasicNewsRecipe): ] remove_attributes = ['style'] - def __init__(self, *args, **kwargs): - BasicNewsRecipe.__init__(self, *args, **kwargs) - if self.output_profile.short_name.startswith('kindle'): - # Reduce image sizes to get file size below amazon's email - # sending threshold - self.web2disk_options.compress_news_images = True - self.web2disk_options.compress_news_images_auto_size = 5 - self.log.warn('Kindle Output profile being used, reducing image quality to keep file size below amazon email threshold') - def preprocess_html(self, soup): w = '/w_320' # use '/w_640' for highres for img in soup.findAll('img'):