From 799efb2532d1585ab2b753f82dc3a700f582d5f4 Mon Sep 17 00:00:00 2001 From: Eldemarkki <38920928+Eldemarkki@users.noreply.github.com> Date: Mon, 28 Feb 2022 00:06:36 +0200 Subject: [PATCH] Add reseptitaivas.fi --- lib/domain/selectors.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/domain/selectors.ts b/lib/domain/selectors.ts index 91fce86..cf00650 100644 --- a/lib/domain/selectors.ts +++ b/lib/domain/selectors.ts @@ -25,6 +25,7 @@ export const supportedDomains = [ 'onceuponachef.com', 'pillsbury.com', 'pinchofyum.com', + 'reseptitaivas.fi', 'sallysbakingaddiction.com', 'simplyrecipes.com', 'spendwithpennies.com', @@ -180,6 +181,11 @@ export const recipeSelectors: domainInformationSelector = { ingredientsSelector: 'div[class="tasty-recipes-ingredients"] > div > ul > li', directionsSelector: 'div[class="tasty-recipes-instructions"] > div > ol > li' }, + 'reseptitaivas.fi' : { + titleSelector: 'h1.post-title', + ingredientsSelector: 'div.post-content > ul > li', + directionsSelector: 'div.post-content > p:not(*[class="mobile-hidden"])' + }, 'sallysbakingaddiction.com' : { titleSelector: 'h2[class="tasty-recipes-title"]', ingredientsSelector: 'div[class="tasty-recipes-ingredients-body"] > ul > li',