From d7615d56a8bab44816c2dcf0450fe6b143198946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Reil=C3=A4nder?= Date: Fri, 29 Jan 2021 21:50:59 +0100 Subject: [PATCH 1/7] add support for mediamarkt austria --- src/store/model/index.ts | 2 + src/store/model/mediamarkt-at.ts | 89 ++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 src/store/model/mediamarkt-at.ts diff --git a/src/store/model/index.ts b/src/store/model/index.ts index 6f6156a1cd..f0a972b058 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -77,6 +77,7 @@ import {JohnLewis} from './johnlewis'; import {Kabum} from './kabum'; import {LandmarkComputers} from './lmc'; import {Mediamarkt} from './mediamarkt'; +import {MediamarktAt} from './mediamarkt-at'; import {Medimax} from './medimax'; import {Megekko} from './megekko'; import {MemoryExpress} from './memoryexpress'; @@ -214,6 +215,7 @@ export const storeList = new Map([ [Kabum.name, Kabum], [LandmarkComputers.name, LandmarkComputers], [Mediamarkt.name, Mediamarkt], + [MediamarktAt.name, MediamarktAt], [Medimax.name, Medimax], [Megekko.name, Megekko], [MemoryExpress.name, MemoryExpress], diff --git a/src/store/model/mediamarkt-at.ts b/src/store/model/mediamarkt-at.ts new file mode 100644 index 0000000000..d8edb4a491 --- /dev/null +++ b/src/store/model/mediamarkt-at.ts @@ -0,0 +1,89 @@ +import {Store} from './store'; + +export const MediamarktAt: Store = { + backoffStatusCodes: [403, 429, 503], + currency: '€', + labels: { + captcha: { + container: 'p', + text: ['Das ging uns leider zu schnell.'], + }, + maxPrice: { + container: 'span[font-family="price"]', + euroFormat: false, + }, + outOfStock: [ + { + container: '#root', + text: ['Dieser Artikel ist aktuell nicht verfügbar.'], + }, + { + container: '#root', + text: ['Leider keine Lieferung möglich'], + }, + { + container: '#root', + text: ['Nicht verfügbar'], + }, + { + container: '#root', + text: ['Dieser Artikel ist dauerhaft ausverkauft'], + }, + { + container: '#root', + text: ['Dieser Artikel ist bald wieder für Sie verfügbar'], + }, + ], + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: 'https://www.mediamarkt.de/de/product/-2641856.html', + }, + { + brand: 'gainward', + model: 'phoenix', + series: '3060ti', + url: 'https://www.mediamarkt.at/de/product/_gainward-grafikkarte-geforce-rtx-3060-ti-phoenix-golden-sample-8gb-ga-3060rtx-ti-ph-gs-1815563.html', + }, + { + brand: 'gainward', + model: 'phantom gaming', + series: '3080', + url: 'https://www.mediamarkt.at/de/product/_gainward-grafikkarte-geforce-rtx-3080-phantom-10gb-ga-3080rtx-ph-1817678.html', + }, + { + brand: 'asus', + model: 'dual', + series: '3060ti', + url: 'https://www.mediamarkt.at/de/product/_asus-grafikkarte-tuf-gaming-geforce-rtx-3060-ti-oc-8gb-tuf-rtx3060ti-o8g-gaming-1812392.html', + }, + { + brand: 'zotac', + model: 'trinity', + series: '3080', + url: 'https://www.mediamarkt.at/de/product/_zotac-grafikkarte-geforce-rtx-3080-trinity-oc-10gb-zt-a30800j-10p-1803318.html', + }, + { + brand: 'asus', + model: 'tuf', + series: '3080', + url: 'https://www.mediamarkt.at/de/product/_asus-grafikkarte-tuf-gaming-geforce%C2%AE-rtx-3080-tuf-rtx3080-10g-gaming-10gb-gddr6x-90yv0fb0-m0nm00-1799192.html', + }, + { + brand: 'msi', + model: 'ventus 2x', + series: '3070', + url: 'https://www.mediamarkt.at/de/product/_msi-grafikkarte-geforce-rtx%E2%84%A2-3070-ventus-2x-oc-8gb-v390-008r-1812232.html', + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3070', + url: 'https://www.mediamarkt.at/de/product/_msi-grafikkarte-geforce-rtx%E2%84%A2-3070-gaming-x-trio-8gb-v390-006r-1812223.html', + } + ], + name: 'mediamarkt-at', +}; From f2546728e2dc9d65f0c7173f6e49e1e306810efb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Reil=C3=A4nder?= Date: Fri, 29 Jan 2021 22:44:35 +0100 Subject: [PATCH 2/7] fix linting --- src/store/model/mediamarkt-at.ts | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/store/model/mediamarkt-at.ts b/src/store/model/mediamarkt-at.ts index d8edb4a491..ef923dc0f2 100644 --- a/src/store/model/mediamarkt-at.ts +++ b/src/store/model/mediamarkt-at.ts @@ -46,44 +46,51 @@ export const MediamarktAt: Store = { brand: 'gainward', model: 'phoenix', series: '3060ti', - url: 'https://www.mediamarkt.at/de/product/_gainward-grafikkarte-geforce-rtx-3060-ti-phoenix-golden-sample-8gb-ga-3060rtx-ti-ph-gs-1815563.html', + url: + 'https://www.mediamarkt.at/de/product/_gainward-grafikkarte-geforce-rtx-3060-ti-phoenix-golden-sample-8gb-ga-3060rtx-ti-ph-gs-1815563.html', }, { brand: 'gainward', model: 'phantom gaming', series: '3080', - url: 'https://www.mediamarkt.at/de/product/_gainward-grafikkarte-geforce-rtx-3080-phantom-10gb-ga-3080rtx-ph-1817678.html', + url: + 'https://www.mediamarkt.at/de/product/_gainward-grafikkarte-geforce-rtx-3080-phantom-10gb-ga-3080rtx-ph-1817678.html', }, { brand: 'asus', model: 'dual', series: '3060ti', - url: 'https://www.mediamarkt.at/de/product/_asus-grafikkarte-tuf-gaming-geforce-rtx-3060-ti-oc-8gb-tuf-rtx3060ti-o8g-gaming-1812392.html', + url: + 'https://www.mediamarkt.at/de/product/_asus-grafikkarte-tuf-gaming-geforce-rtx-3060-ti-oc-8gb-tuf-rtx3060ti-o8g-gaming-1812392.html', }, { brand: 'zotac', model: 'trinity', series: '3080', - url: 'https://www.mediamarkt.at/de/product/_zotac-grafikkarte-geforce-rtx-3080-trinity-oc-10gb-zt-a30800j-10p-1803318.html', + url: + 'https://www.mediamarkt.at/de/product/_zotac-grafikkarte-geforce-rtx-3080-trinity-oc-10gb-zt-a30800j-10p-1803318.html', }, { brand: 'asus', model: 'tuf', series: '3080', - url: 'https://www.mediamarkt.at/de/product/_asus-grafikkarte-tuf-gaming-geforce%C2%AE-rtx-3080-tuf-rtx3080-10g-gaming-10gb-gddr6x-90yv0fb0-m0nm00-1799192.html', + url: + 'https://www.mediamarkt.at/de/product/_asus-grafikkarte-tuf-gaming-geforce%C2%AE-rtx-3080-tuf-rtx3080-10g-gaming-10gb-gddr6x-90yv0fb0-m0nm00-1799192.html', }, { brand: 'msi', model: 'ventus 2x', series: '3070', - url: 'https://www.mediamarkt.at/de/product/_msi-grafikkarte-geforce-rtx%E2%84%A2-3070-ventus-2x-oc-8gb-v390-008r-1812232.html', + url: + 'https://www.mediamarkt.at/de/product/_msi-grafikkarte-geforce-rtx%E2%84%A2-3070-ventus-2x-oc-8gb-v390-008r-1812232.html', }, { brand: 'msi', model: 'gaming x trio', series: '3070', - url: 'https://www.mediamarkt.at/de/product/_msi-grafikkarte-geforce-rtx%E2%84%A2-3070-gaming-x-trio-8gb-v390-006r-1812223.html', - } + url: + 'https://www.mediamarkt.at/de/product/_msi-grafikkarte-geforce-rtx%E2%84%A2-3070-gaming-x-trio-8gb-v390-006r-1812223.html', + }, ], name: 'mediamarkt-at', }; From 5f15cf501bdbf2d706772dc652b6cb1fb66d380b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Reil=C3=A4nder?= Date: Wed, 3 Feb 2021 18:58:38 +0100 Subject: [PATCH 3/7] fix wrong model definition for wipoid link --- src/store/model/wipoid.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/model/wipoid.ts b/src/store/model/wipoid.ts index 455156b7e3..9a17ad848a 100644 --- a/src/store/model/wipoid.ts +++ b/src/store/model/wipoid.ts @@ -235,8 +235,8 @@ export const Wipoid: Store = { }, { brand: 'gigabyte', - model: 'eagle oc', - series: '3080', + model: 'vision oc', + series: '3070', url: 'https://www.wipoid.com/gigabyte-geforce-rtx-3070-vision-oc-8gb-gddr6.html', }, From 3e094afb575bf6a5b7dfe62b4ed42abcf0332d62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Reil=C3=A4nder?= Date: Fri, 19 Feb 2021 00:45:51 +0100 Subject: [PATCH 4/7] fix wrong test brand link --- src/store/model/mediamarkt-at.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/model/mediamarkt-at.ts b/src/store/model/mediamarkt-at.ts index ef923dc0f2..abced4c9e4 100644 --- a/src/store/model/mediamarkt-at.ts +++ b/src/store/model/mediamarkt-at.ts @@ -40,7 +40,7 @@ export const MediamarktAt: Store = { brand: 'test:brand', model: 'test:model', series: 'test:series', - url: 'https://www.mediamarkt.de/de/product/-2641856.html', + url: 'https://www.mediamarkt.at/de/product/-1759580.html', }, { brand: 'gainward', From 69d43a96e7a199073d5ddb3ad2a8bde75ca7b4fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Reil=C3=A4nder?= Date: Fri, 19 Feb 2021 00:46:15 +0100 Subject: [PATCH 5/7] shorten urls --- src/store/model/mediamarkt-at.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/store/model/mediamarkt-at.ts b/src/store/model/mediamarkt-at.ts index abced4c9e4..e6e8c3ae2b 100644 --- a/src/store/model/mediamarkt-at.ts +++ b/src/store/model/mediamarkt-at.ts @@ -47,49 +47,49 @@ export const MediamarktAt: Store = { model: 'phoenix', series: '3060ti', url: - 'https://www.mediamarkt.at/de/product/_gainward-grafikkarte-geforce-rtx-3060-ti-phoenix-golden-sample-8gb-ga-3060rtx-ti-ph-gs-1815563.html', + 'https://www.mediamarkt.at/de/product/-1815563.html', }, { brand: 'gainward', model: 'phantom gaming', series: '3080', url: - 'https://www.mediamarkt.at/de/product/_gainward-grafikkarte-geforce-rtx-3080-phantom-10gb-ga-3080rtx-ph-1817678.html', + 'https://www.mediamarkt.at/de/product/-1817678.html', }, { brand: 'asus', model: 'dual', series: '3060ti', url: - 'https://www.mediamarkt.at/de/product/_asus-grafikkarte-tuf-gaming-geforce-rtx-3060-ti-oc-8gb-tuf-rtx3060ti-o8g-gaming-1812392.html', + 'https://www.mediamarkt.at/de/product/-1812392.html', }, { brand: 'zotac', model: 'trinity', series: '3080', url: - 'https://www.mediamarkt.at/de/product/_zotac-grafikkarte-geforce-rtx-3080-trinity-oc-10gb-zt-a30800j-10p-1803318.html', + 'https://www.mediamarkt.at/de/product/-1803318.html', }, { brand: 'asus', model: 'tuf', series: '3080', url: - 'https://www.mediamarkt.at/de/product/_asus-grafikkarte-tuf-gaming-geforce%C2%AE-rtx-3080-tuf-rtx3080-10g-gaming-10gb-gddr6x-90yv0fb0-m0nm00-1799192.html', + 'https://www.mediamarkt.at/de/product/-1799192.html', }, { brand: 'msi', model: 'ventus 2x', series: '3070', url: - 'https://www.mediamarkt.at/de/product/_msi-grafikkarte-geforce-rtx%E2%84%A2-3070-ventus-2x-oc-8gb-v390-008r-1812232.html', + 'https://www.mediamarkt.at/de/product/-1812232.html', }, { brand: 'msi', model: 'gaming x trio', series: '3070', url: - 'https://www.mediamarkt.at/de/product/_msi-grafikkarte-geforce-rtx%E2%84%A2-3070-gaming-x-trio-8gb-v390-006r-1812223.html', + 'https://www.mediamarkt.at/de/product/-1812223.html', }, ], name: 'mediamarkt-at', From c2fc07461cb677d92be59a100a540c94ddb82453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Reil=C3=A4nder?= Date: Fri, 19 Feb 2021 00:48:00 +0100 Subject: [PATCH 6/7] fix linting --- src/store/model/mediamarkt-at.ts | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/store/model/mediamarkt-at.ts b/src/store/model/mediamarkt-at.ts index e6e8c3ae2b..a5fd580b5e 100644 --- a/src/store/model/mediamarkt-at.ts +++ b/src/store/model/mediamarkt-at.ts @@ -46,50 +46,43 @@ export const MediamarktAt: Store = { brand: 'gainward', model: 'phoenix', series: '3060ti', - url: - 'https://www.mediamarkt.at/de/product/-1815563.html', + url: 'https://www.mediamarkt.at/de/product/-1815563.html', }, { brand: 'gainward', model: 'phantom gaming', series: '3080', - url: - 'https://www.mediamarkt.at/de/product/-1817678.html', + url: 'https://www.mediamarkt.at/de/product/-1817678.html', }, { brand: 'asus', model: 'dual', series: '3060ti', - url: - 'https://www.mediamarkt.at/de/product/-1812392.html', + url: 'https://www.mediamarkt.at/de/product/-1812392.html', }, { brand: 'zotac', model: 'trinity', series: '3080', - url: - 'https://www.mediamarkt.at/de/product/-1803318.html', + url: 'https://www.mediamarkt.at/de/product/-1803318.html', }, { brand: 'asus', model: 'tuf', series: '3080', - url: - 'https://www.mediamarkt.at/de/product/-1799192.html', + url: 'https://www.mediamarkt.at/de/product/-1799192.html', }, { brand: 'msi', model: 'ventus 2x', series: '3070', - url: - 'https://www.mediamarkt.at/de/product/-1812232.html', + url: 'https://www.mediamarkt.at/de/product/-1812232.html', }, { brand: 'msi', model: 'gaming x trio', series: '3070', - url: - 'https://www.mediamarkt.at/de/product/-1812223.html', + url: 'https://www.mediamarkt.at/de/product/-1812223.html', }, ], name: 'mediamarkt-at', From 05960af9e9eb79f065950609f695f46ac9a7c5e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Reil=C3=A4nder?= Date: Sun, 28 Mar 2021 09:40:58 +0200 Subject: [PATCH 7/7] add mediamarkt-at --- docs/reference/filter.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/reference/filter.md b/docs/reference/filter.md index c75e55e769..dd540ab215 100644 --- a/docs/reference/filter.md +++ b/docs/reference/filter.md @@ -113,6 +113,7 @@ Used with the `STORES` variable. | Kabum | BR | `kabum`| | Landmark Computers | AU | `landmark-computers`| | Mediamarkt | DE | `mediamarkt`| +| Mediamarkt | AT | `mediamarkt-at`| | Medimax | DE | `medimax`| | Megekko | NL | `megekko`| | MemoryExpress | CA | `memoryexpress`|