Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/alta-badia'
Browse files Browse the repository at this point in the history
  • Loading branch information
pirxpilot committed Oct 10, 2023
2 parents 1d270cd + d434d03 commit 6305e65
Show file tree
Hide file tree
Showing 4 changed files with 614 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/resorts/alta-badia/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
selector: '[data-tag="lifts"] tr:not(:first-child)',
parse: {
name: '3/0',
status: {
child: '0',
attribute: 'class',
regex: /state(\d)$/,
fn: s => {
switch (s) {
case '0': return 'closed';
case '1': return 'open';
}
}
}
}
};
17 changes: 17 additions & 0 deletions lib/resorts/alta-badia/resort.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "Alta Badia",
"url": {
"host": "https://www.altabadia.org",
"pathname": "/en/winter-holidays/italian-alps/open-lifts-snow-report.html"
},
"tags": [
"Italy",
"Dolomiti",
"Alps",
"Sellaronda"
],
"ll": [
11.866667,
46.55
]
}
59 changes: 59 additions & 0 deletions test/resorts/alta-badia.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
const lifts = require('../lifts');

lifts('alta-badia', 'html', {
'Col Alto': 'closed',
'Braia Fraida': 'closed',
'Capanna Nera': 'closed',
'Pralongiá': 'closed',
'Pralongiá I': 'closed',
'Pralongiá II': 'closed',
'Crep de Mont': 'closed',
'Boé': 'closed',
'Vallon': 'closed',
'Costoratta': 'closed',
"Costes da l'Ega": 'closed',
'Arlara': 'closed',
'Pre Ciablun': 'closed',
'Incisa': 'closed',
'Cherz 1': 'closed',
'Cherz 2': 'closed',
'La Vizza': 'closed',
'Masarei': 'closed',
'Abrusé': 'closed',
'Borest': 'closed',
'Sodlisia': 'closed',
'Pezzei': 'closed',
'Plans': 'closed',
'Frara': 'closed',
'Col Pradat': 'closed',
'Colfosco': 'closed',
'Forcelles': 'closed',
'Stella Alpina': 'closed',
'Val Setus': 'closed',
'Piz La Ila': 'closed',
'Ferata Gran Risa': 'closed',
'Pre dai Corf': 'closed',
'Bamby': 'closed',
'Roby': 'closed',
'La Rüa': 'closed',
'Colz': 'closed',
'Doninz': 'closed',
'Gardenaccia': 'closed',
"Col d'Altin": 'closed',
'Piz Sorega': 'closed',
'Codes': 'closed',
'La Brancia': 'closed',
'Biok': 'closed',
'Ciampai': 'closed',
'La Para': 'closed',
'La Fraina': 'closed',
'Armentarola': 'closed',
'Baby La Crusc': 'closed',
'La Crusc 1': 'closed',
'La Crusc 2': 'closed',
'Pradüc': 'closed',
'Sponata': 'closed',
'Sompunt/ Sponata - Piculin': 'closed',
'Piculin - Sompunt/ Sponata': 'closed',
'Falzarego - Lagazuoi': 'closed'
});
Loading

0 comments on commit 6305e65

Please sign in to comment.