From 275bb9617ac3e9bba146ec66e764571a7c3293ff Mon Sep 17 00:00:00 2001 From: Michael Genson <71845777+michael-genson@users.noreply.github.com> Date: Mon, 11 Dec 2023 04:37:00 +0000 Subject: [PATCH] use scraper URL instead of og tag --- mealie/services/scraper/scraper_strategies.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mealie/services/scraper/scraper_strategies.py b/mealie/services/scraper/scraper_strategies.py index fd51498023a4..b9aa89784152 100644 --- a/mealie/services/scraper/scraper_strategies.py +++ b/mealie/services/scraper/scraper_strategies.py @@ -208,10 +208,6 @@ class RecipeScraperPackage(ABCScraperStrategy): class RecipeScraperOpenGraph(ABCScraperStrategy): - """ - Abstract class for all recipe parsers. - """ - async def get_html(self, url: str) -> str: return await safe_scrape_html(url) @@ -241,7 +237,7 @@ class RecipeScraperOpenGraph(ABCScraperStrategy): "recipeIngredient": ["Could not detect ingredients"], "recipeInstructions": [{"text": "Could not detect instructions"}], "slug": slugify(og_field(properties, "og:title")), - "orgURL": og_field(properties, "og:url"), + "orgURL": self.url, "categories": [], "tags": og_fields(properties, "og:article:tag"), "dateAdded": None,