From 8430864a0f4160fe8a5074c5cdd1ef2ba49bdf53 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Mon, 11 Sep 2023 22:45:53 +0300 Subject: Default to self.url if post link is not present --- plugins/ScraperSourcePlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/ScraperSourcePlugin.py') diff --git a/plugins/ScraperSourcePlugin.py b/plugins/ScraperSourcePlugin.py index f7673de..57156e8 100644 --- a/plugins/ScraperSourcePlugin.py +++ b/plugins/ScraperSourcePlugin.py @@ -182,7 +182,7 @@ class Plugin(PluginInterface): item = Item( title=f"{date} – {title}", - link=detail_page_url, + link=detail_page_url if detail_page_url else self.url, description=description, pub_date=None, # TODO pub_date parsing author=author, -- cgit v1.3