Skip to content

Commit

Permalink
fix Cannot resort
Browse files Browse the repository at this point in the history
fixes #92
  • Loading branch information
pirxpilot committed Dec 12, 2024
1 parent e149ced commit e47dd53
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3,373 deletions.
13 changes: 8 additions & 5 deletions lib/resorts/cannon/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
module.exports = {
selector: '.lifts-table .lift-data',
selector: 'table.mb-16 tr',
parse: {
name: 0,
name: '1/0',
status: {
child: '1/0',
attribute: 'class',
regex: /icon ([a-z]+) fas/
child: '0/0',
attribute: 'aria-label',
regex: /(red|green)/i
}
}
};



2 changes: 1 addition & 1 deletion lib/resorts/cannon/resort.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Cannon",
"url": {
"host": "https://www.cannonmt.com",
"pathname": "/mountain/trails-lifts"
"pathname": "/trails-lifts"
},
"tags": [
"New England",
Expand Down
19 changes: 9 additions & 10 deletions test/resorts/cannon.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
const lifts = require('../lifts');

lifts('cannon', 'html', {
'70-Passenger Aerial Tramway': 'open',
'Brookside Triple Chair': 'open',
'Aerial Tramway': 'closed',
'Cannonball Quad Chair': 'open',
'Eagle Cliff Triple Chair': 'open',
'Magic Carpet': 'closed',
'Peabody Express Quad Chair': 'open',
'Huckerbrook Handle Tow': 'closed',
'Tuckerbrook Quad Chair': 'open',
'Zoomer Triple Chair': 'open',
'Mittersill Double Chair': 'closed',
'Valar T-Bar': 'open'
'Peabody Express Quad': 'open',
'Zoomer Triple': 'closed',
'Tuckerbrook Quad': 'closed',
'Eagle Cliff Triple Chair': 'closed',
'Brookside Triple': 'open',
'Mittersill Double': 'closed',
'Valar T-Bar': 'closed',
'Huckerbrook Handle Tow': 'closed'
});
Loading

0 comments on commit e47dd53

Please sign in to comment.