'use strict';

Connector.playerSelector = '.region-bottomBar';

Connector.artistSelector = '.Tuner__Audio__TrackDetail__artist';

Connector.trackSelector = '.Tuner__Audio__TrackDetail__title';

Connector.durationSelector = 'span[data-qa="remaining_time"]';

Connector.trackArtSelector = '.Tuner__Audio__TrackDetail__img img';

Connector.getTrackArt = () => {
	let trackArtUrl = $('.Tuner__Audio__TrackDetail__img img').attr('src');
	if (trackArtUrl) {
		return trackArtUrl.replace('90W_90H', '500W_500H');
	}

	return null;
};

Connector.isPlaying = () => {
	let playButtonHref = $('.PlayButton use').attr('xlink:href');
	return playButtonHref.includes('pause');
};

Connector.isScrobblingAllowed = () => {
	return $('.Tuner__Audio__TrackDetail__title--ad').length === 0;
};

@@ -556,110 +556,57 @@
  %7B%0A%09
-let playButtonHref = $('.PlayButton use').attr('xlink:href');%0A%09return playButtonHref.includes('pause')
+return $('%5Bdata-qa=%22pause_button%22%5D').length === 1
 ;%0A%7D;

fix playing state detection