'use strict';

/* global Connector */

Connector.playerSelector = '#plex';

Connector.artistSelector = '.grandparent-title';

Connector.trackSelector = '.item-title';

Connector.currentTimeSelector = '.player-position';

Connector.durationSelector = '.player-duration';

Connector.isPlaying = function () {
	return $('.player .play-btn').hasClass('hidden') || false;
};

Connector.getTrackArt = function () {
	return $('.player .media-poster').data('imageUrl') || null;
};

Connector.getAlbum = function () {
	return $('.player .media-poster').data('parentTitle') || null;
};

'use strict';

/* global Connector */

Connector.playerSelector = '#plex';

Connector.artistSelector = '.grandparent-title';

Connector.trackSelector = '.title-container .item-title';

Connector.currentTimeSelector = '.player-position';

Connector.durationSelector = '.player-duration';

Connector.isPlaying = function () {
	return $('.player .play-btn').hasClass('hidden') || false;
};

Connector.getTrackArt = function () {
	return $('.player .media-poster').data('imageUrl') || null;
};

Connector.getAlbum = function () {
	return $('.player .media-poster').data('parentTitle') || null;
};

Fix Plex track title detection
Fix Plex track title detection

The previous class wasn't sufficiently specific, so it would pull in
extra info and make a match impossible. With this change, the title is
now accurately selected every time.
