When using tablet profile dont override scale_news_images

This commit is contained in:
Kovid Goyal 2021-07-18 20:40:36 +05:30
parent 01d18e5dda
commit a1e9b55591
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 1 deletions

View File

@ -119,6 +119,7 @@ class BostonGlobeSubscription(BasicNewsRecipe):
remove_tags_after = dict(attrs={'class': lambda x:x and x.startswith('body |')})
remove_attributes = ['style']
no_stylesheets = True
scale_news_images = 1600, 1200
# simultaneous_downloads = 1
def image_url_processor(self, baseurl, url):

View File

@ -946,7 +946,7 @@ class BasicNewsRecipe(Recipe):
for reg in self.filter_regexps:
web2disk_cmdline.extend(['--filter-regexp', reg])
if options.output_profile.short_name == 'default':
if options.output_profile.short_name in ('default', 'tablet'):
self.scale_news_images_to_device = False
elif self.scale_news_images_to_device:
self.scale_news_images = options.output_profile.screen_size