diff --git a/InvenTree/plugin/plugin.py b/InvenTree/plugin/plugin.py index 806ee182a2..3fdaa702e2 100644 --- a/InvenTree/plugin/plugin.py +++ b/InvenTree/plugin/plugin.py @@ -364,11 +364,16 @@ class InvenTreePlugin(VersionMixin, MixinBase, MetaBase): # Not much information we can extract at this point return {} + try: + website = meta['Project-URL'].split(', ')[1] + except [ValueError, IndexError]: + website = meta['Project-URL'] + return { 'author': meta['Author-email'], 'description': meta['Summary'], 'version': meta['Version'], - 'website': meta['Project-URL'], + 'website': website, 'license': meta['License'] }