diff options
Diffstat (limited to 'plugins/ScraperSourcePlugin.py')
| -rw-r--r-- | plugins/ScraperSourcePlugin.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/ScraperSourcePlugin.py b/plugins/ScraperSourcePlugin.py index 0013695..3ee78b7 100644 --- a/plugins/ScraperSourcePlugin.py +++ b/plugins/ScraperSourcePlugin.py @@ -159,7 +159,14 @@ class Plugin(PluginInterface): image_src = None if guid is None: - guid = ItemGUID(f"aggro__{self.id}__{title}") + if title: + guid = ItemGUID(f"aggro__{self.id}__{title}") + elif description: + guid = ItemGUID(f"aggro__{self.id}__{description}") + else: + raise Exception( + f"[ScraperSourcePlugin#{self.id}] both title and description are None" + ) if image_src is not None: image_src = self.absolute_link(image_src) |
