From 3e82199c4448ca7b835b535c5019caa30f3ce87d Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Fri, 6 Jan 2023 21:22:02 +0100 Subject: [PATCH] added author keyword import --- cookbook/helper/recipe_url_import.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cookbook/helper/recipe_url_import.py b/cookbook/helper/recipe_url_import.py index c14b018d5..3091023ad 100644 --- a/cookbook/helper/recipe_url_import.py +++ b/cookbook/helper/recipe_url_import.py @@ -124,6 +124,11 @@ def get_from_scraper(scrape, request): except Exception: recipe_json['source_url'] = '' + try: + keywords.append(scrape.author()) + except: + pass + try: recipe_json['keywords'] = parse_keywords(list(set(map(str.casefold, keywords))), request.space) except AttributeError: