From 7bdafebdfbe6b13ffff94b5b7ee27dae802d80f8 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Wed, 29 Nov 2023 15:55:33 +0100 Subject: [PATCH] Add ebook category --- lib/harvey.ex | 1 + lib/harvey/providers/adm.ex | 4 +++- lib/harvey/providers/hgspot.ex | 3 ++- lib/harvey/providers/instar.ex | 3 ++- lib/harvey/providers/links.ex | 1 + lib/harvey/providers/sancta_domenica.ex | 3 ++- lib/harvey/providers/svijet_medija.ex | 1 + 7 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/harvey.ex b/lib/harvey.ex index df50eaa..c17c53c 100644 --- a/lib/harvey.ex +++ b/lib/harvey.ex @@ -46,6 +46,7 @@ defmodule Harvey do {:hardware, :monitors, "Monitors"}, {:hardware, :motherboards, "Motherboards"}, {:hardware, :ram, "RAM"}, + {:multimedia, :ebook, "Ebook Readers"}, {:multimedia, :smartphones, "Smartphones"}, {:multimedia, :tablets, "Tablets"}, {:multimedia, :tvs, "TVs"} diff --git a/lib/harvey/providers/adm.ex b/lib/harvey/providers/adm.ex index f7474b0..4beaa8a 100644 --- a/lib/harvey/providers/adm.ex +++ b/lib/harvey/providers/adm.ex @@ -14,7 +14,9 @@ defmodule Harvey.Providers.Adm do monitors: "https://www.adm.hr/gaming-monitori-051/15/", monitors: "https://www.adm.hr/uredski-monitori-053/17/", motherboards: "https://www.adm.hr/maticne-ploce-mbo-094/39/", - ram: "https://www.adm.hr/memorija-096/40/" + ram: "https://www.adm.hr/memorija-096/40/", + ebook: "https://www.adm.hr/tableti-234/96/?catef=330", + tablets: "https://www.adm.hr/tableti-234/96/?catef=305,307" ] @impl Provider diff --git a/lib/harvey/providers/hgspot.ex b/lib/harvey/providers/hgspot.ex index 451ddea..77f0b81 100644 --- a/lib/harvey/providers/hgspot.ex +++ b/lib/harvey/providers/hgspot.ex @@ -12,7 +12,8 @@ defmodule Harvey.Providers.Hgspot do motherboards: "https://www.hgspot.hr/it-oprema/komponente/maticne-ploce", ram: "https://www.hgspot.hr/it-oprema/komponente/radna-memorija", smartphones: "https://www.hgspot.hr/mobiteli-i-oprema/mobilni-telefoni/smartphones", - tvs: "https://www.hgspot.hr/multimedija/televizori/televizori" + tvs: "https://www.hgspot.hr/multimedija/televizori/televizori", + ebook: "https://www.hgspot.hr/mobiteli-i-oprema/tableti-i-e-citaci/e-citaci" ] @impl Provider diff --git a/lib/harvey/providers/instar.ex b/lib/harvey/providers/instar.ex index 341fe46..e807469 100644 --- a/lib/harvey/providers/instar.ex +++ b/lib/harvey/providers/instar.ex @@ -15,7 +15,8 @@ defmodule Harvey.Providers.Instar do laptops: "https://www.instar-informatika.hr/laptopi/2/", motherboards: "https://www.instar-informatika.hr/maticne-ploce/33/", ram: "https://www.instar-informatika.hr/memorija-za-laptop/758/", - ram: "https://www.instar-informatika.hr/memorija/35/" + ram: "https://www.instar-informatika.hr/memorija/35/", + ebook: "https://www.instar-informatika.hr/e-book-reader/722/" ] @impl Provider diff --git a/lib/harvey/providers/links.ex b/lib/harvey/providers/links.ex index 345d959..d9d7296 100644 --- a/lib/harvey/providers/links.ex +++ b/lib/harvey/providers/links.ex @@ -21,6 +21,7 @@ defmodule Harvey.Providers.Links do @category_ids [ cpus: "34", dish_washers: "1460", + ebook: "918", fridges_freezers: "1461", fridges_freezers: "1462", graphics: "129", diff --git a/lib/harvey/providers/sancta_domenica.ex b/lib/harvey/providers/sancta_domenica.ex index 83160c0..f456bb7 100644 --- a/lib/harvey/providers/sancta_domenica.ex +++ b/lib/harvey/providers/sancta_domenica.ex @@ -25,7 +25,8 @@ defmodule Harvey.Providers.SanctaDomenica do stoves: "https://www.sancta-domenica.hr/bijela-tehnika/ploce-za-kuhanje.html", stoves: "https://www.sancta-domenica.hr/bijela-tehnika/stednjaci.html", tvs: "https://www.sancta-domenica.hr/televizori/led-tv.html", - washers_dryers: "https://www.sancta-domenica.hr/bijela-tehnika/perilice-rublja.html" + washers_dryers: "https://www.sancta-domenica.hr/bijela-tehnika/perilice-rublja.html", + tablets: "https://www.sancta-domenica.hr/komunikacije/tableti.html" ] @impl Provider diff --git a/lib/harvey/providers/svijet_medija.ex b/lib/harvey/providers/svijet_medija.ex index 1c174f5..e195c98 100644 --- a/lib/harvey/providers/svijet_medija.ex +++ b/lib/harvey/providers/svijet_medija.ex @@ -7,6 +7,7 @@ defmodule Harvey.Providers.SvijetMedija do @categories [ dish_washers: "https://www.svijet-medija.hr/gg/206/perilice-posuda", + ebook: "https://www.svijet-medija.hr/gg/4/citaci-e-knjiga", fridges_freezers: "https://www.svijet-medija.hr/gg/205/hladnjaci", fridges_freezers: "https://www.svijet-medija.hr/gg/4462/zamrzivaci", laptops: "https://www.svijet-medija.hr/gg/3/laptopi", -- 2.45.2