Skip to content

Commit

Permalink
feat(store): add mediamarkt austria (#1836)
Browse files Browse the repository at this point in the history
  • Loading branch information
mreilaender authored Apr 9, 2021
1 parent 211e3e2 commit ae8e72a
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/reference/filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ Used with the `STORES` variable.
| Landmark Computers | AU | `landmark-computers`|
| Ldlc | FR | `ldlc`|
| Mediamarkt | DE | `mediamarkt`|
| Mediamarkt | AT | `mediamarkt-at`|
| Medimax | DE | `medimax`|
| Megekko | NL | `megekko`|
| MemoryExpress | CA | `memoryexpress`|
Expand Down
2 changes: 2 additions & 0 deletions src/store/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ import {Kabum} from './kabum';
import {KomplettNO} from './komplett-no';
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';
Expand Down Expand Up @@ -234,6 +235,7 @@ export const storeList = new Map([
[KomplettNO.name, KomplettNO],
[LandmarkComputers.name, LandmarkComputers],
[Mediamarkt.name, Mediamarkt],
[MediamarktAt.name, MediamarktAt],
[Medimax.name, Medimax],
[Megekko.name, Megekko],
[Ldlc.name, Ldlc],
Expand Down
89 changes: 89 additions & 0 deletions src/store/model/mediamarkt-at.ts
Original file line number Diff line number Diff line change
@@ -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.at/de/product/-1759580.html',
},
{
brand: 'gainward',
model: 'phoenix',
series: '3060ti',
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',
},
{
brand: 'asus',
model: 'dual',
series: '3060ti',
url: 'https://www.mediamarkt.at/de/product/-1812392.html',
},
{
brand: 'zotac',
model: 'trinity',
series: '3080',
url: 'https://www.mediamarkt.at/de/product/-1803318.html',
},
{
brand: 'asus',
model: 'tuf',
series: '3080',
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',
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3070',
url: 'https://www.mediamarkt.at/de/product/-1812223.html',
},
],
name: 'mediamarkt-at',
};
4 changes: 2 additions & 2 deletions src/store/model/wipoid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,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-3080-eagle-oc-10gb-gddr6x.html',
},
Expand Down

0 comments on commit ae8e72a

Please sign in to comment.