From 8f4c00df0bdf2b906ed2aeca1ccda020ffc5345a Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Mon, 2 May 2022 15:52:15 +0200 Subject: [PATCH] use old property as other sometimes fails --- cookbook/helper/recipe_url_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/helper/recipe_url_import.py b/cookbook/helper/recipe_url_import.py index 1d9b9e549..9ad34528e 100644 --- a/cookbook/helper/recipe_url_import.py +++ b/cookbook/helper/recipe_url_import.py @@ -114,7 +114,7 @@ def get_from_scraper(scrape, request): except Exception: pass - if source_url := scrape.canonical_url(): + if source_url := scrape.url: recipe_json['source_url'] = source_url try: keywords.append(source_url.replace('http://', '').replace('https://', '').split('/')[0])