Skip to content

Commit

Permalink
Add support for PlayIrish, Imago Radio and Provoda.ch (#2184)
Browse files Browse the repository at this point in the history
Resolves #1972.
Resolves #1731 
Resolves #1862.
  • Loading branch information
clasick authored and alexesprit committed Dec 7, 2019
1 parent 8bd49b4 commit 8132855
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/connectors/imago.js
@@ -0,0 +1,7 @@
'use strict';

Connector.playerSelector = '.now-play';

Connector.artistTrackSelector = '#current-track';

Connector.pauseButtonSelector = '.play-icon.stop';
12 changes: 12 additions & 0 deletions src/connectors/playirish.js
@@ -0,0 +1,12 @@
'use strict';

Connector.playerSelector = '.qt-musicplayer';

Connector.artistTrackSelector = '#streamCurrentlyPlaying';

Connector.getArtistTrack = () => {
let text = $(Connector.artistTrackSelector).text().replace('NOW PLAYING:', '');
return Util.splitArtistTrack(text);
};

Connector.pauseButtonSelector = '.sm2_playing';
7 changes: 7 additions & 0 deletions src/connectors/provoda.ch.js
@@ -0,0 +1,7 @@
'use strict';

Connector.playerSelector = '#player-logo';

Connector.artistTrackSelector = '#track';

Connector.isPlaying = () => $('#player-control-playing').css('display') === 'inline';
15 changes: 15 additions & 0 deletions src/core/connectors.js
Expand Up @@ -1210,6 +1210,21 @@ const connectors = [{
matches: ['*://www.jango.com/*'],
js: 'connectors/jango.js',
id: 'jango',
}, {
label: 'PlayIrish',
matches: ['*://*.playirish.ie/*'],
js: 'connectors/playirish.js',
id: 'playirish',
}, {
label: 'Imago Radio',
matches: ['*://*.imago.fm/*'],
js: 'connectors/imago.js',
id: 'imago',
}, {
label: 'Provoda.ch',
matches: ['*://*.provoda.ch/*'],
js: 'connectors/provoda.ch.js',
id: 'provoda.ch',
}];

define(() => connectors);

1 comment on commit 8132855

@alexesprit
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Referenced the wrong issue (should be #1733) because of stupid GitHub autocompletion. :(

Please sign in to comment.