'use strict';

const filter = MetadataFilter.createFilter({ artist: removeByPrefix });

Connector.playerSelector = 'body';

Connector.artistSelector = '.artist-name';

Connector.playButtonSelector = '.fa-play';

Connector.trackArtSelector = '.artist-image img';

Connector.trackSelector = '.artist-track';

Connector.applyFilter(filter);

function removeByPrefix(text) {
	return text.replace('by: ', '');
}

@@ -18,72 +18,101 @@
 nst 
-filter = MetadataFilter.createFilter(%7B artist: removeByPrefix %7D)
+trackInfoSelector = '.stream-title';%0Aconst playButtonSelector = '.playbutton .material-icons'
 ;%0A%0AC
@@ -142,12 +142,21 @@
  = '
-body
+.audio-player
 ';%0A%0A
@@ -169,253 +169,462 @@
 tor.
-a
+getA
 rtist
-Selector = '.artist-name';%0A%0AConnector.playButtonSelector = '.fa-play';%0A%0AConnector.trackArtSelector = '.artist-image img';%0A%0AConnector.trackSelector = '.artist-track';%0A%0AConnector.applyFilter(filter);%0A%0Afunction removeByPrefix(text
+Track = () =%3E %7B%0A%09const trackInfoElement = document.querySelector(trackInfoSelector);%0A%09if (!trackInfoElement) %7B%0A%09%09return null;%0A%09%7D%0A%0A%09const %5BtrackElement, , artistElement%5D = trackInfoElement.childNodes;%0A%09return %7B%0A%09%09artist: artistElement && artistElement.textContent,%0A%09%09track: trackElement && trackElement.textContent,%0A%09%7D;%0A%7D;%0A%0AConnector.isPlaying = () =%3E %7B%0A%09const playButton = document.querySelector(playButtonSelector);%0A%09if (playButton
 ) %7B%0A
+%09
 %09return 
 text
@@ -623,32 +623,67 @@
 urn 
-text.replace('by: ', '')
+playButton.textContent.includes('pause');%0A%09%7D%0A%0A%09return true
 ;%0A%7D
+;
 %0A

Fix pinguinradio connector