Skip to content

Commit 77e5e6a

Browse files
committed
Add Qobuz connector
Closes web-scrobbler#1914.
1 parent 658a30d commit 77e5e6a

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

src/connectors/qobuz.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
'use strict';
2+
3+
Connector.playerSelector = '.player__inner';
4+
5+
Connector.artistSelector = '.link-artist';
6+
7+
Connector.trackSelector = '.player__inner__container1__track__name';
8+
9+
Connector.albumSelector =
10+
'.player__inner__container1__track__album a:last-child';
11+
12+
Connector.trackArtSelector = '.player__inner__container1__cover img';
13+
14+
Connector.timeInfoSelector = '.player__inner__container1__time';
15+
16+
Connector.playButtonSelector = '.pct-player-play';

src/core/connectors.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,6 +1567,13 @@ const connectors = [{
15671567
],
15681568
js: 'connectors/nightride.fm.js',
15691569
id: 'nightridefm',
1570+
}, {
1571+
label: 'Qobuz',
1572+
matches: [
1573+
'*://*.qobuz.com/*',
1574+
],
1575+
js: 'connectors/qobuz.js',
1576+
id: 'qobuz',
15701577
}];
15711578

15721579
define(() => connectors);

0 commit comments

Comments
 (0)