From 1815eb1c55ffa82bffe89cfb48e6589ea7585c8e Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Mon, 11 Sep 2023 18:07:50 +0300 Subject: Add show_image_in_description to ScraperSourcePlugin --- plugins/ScraperSourcePlugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/ScraperSourcePlugin.py b/plugins/ScraperSourcePlugin.py index e8d777a..7de7dac 100644 --- a/plugins/ScraperSourcePlugin.py +++ b/plugins/ScraperSourcePlugin.py @@ -32,6 +32,9 @@ class Plugin(PluginInterface): self.selector_image: str | None = get_config_or_default( params, "selector_image", None ) + self.show_image_in_description: bool = get_config_or_default( + params, "show_image_in_description", False + ) print(f"[ScraperSourcePlugin#{self.id}] initialized") @@ -159,7 +162,7 @@ class Plugin(PluginInterface): if image_src is not None: image_src = self.absolute_link(image_src) image_html = f'

' - if description: + if description and self.show_image_in_description: description = image_html + description else: description = image_html -- cgit v1.3