mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 12:18:45 -05:00
use old property as other sometimes fails
This commit is contained in:
@@ -114,7 +114,7 @@ def get_from_scraper(scrape, request):
|
|||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if source_url := scrape.canonical_url():
|
if source_url := scrape.url:
|
||||||
recipe_json['source_url'] = source_url
|
recipe_json['source_url'] = source_url
|
||||||
try:
|
try:
|
||||||
keywords.append(source_url.replace('http://', '').replace('https://', '').split('/')[0])
|
keywords.append(source_url.replace('http://', '').replace('https://', '').split('/')[0])
|
||||||
|
|||||||
Reference in New Issue
Block a user