'use strict';

/* global Connector */

Connector.playerSelector = '#player';

Connector.trackArtImageSelector = '#playerBarArt';

Connector.artistSelector = '#player-artist';

Connector.trackSelector = '#currently-playing-title';

Connector.albumSelector = '.player-album';

Connector.currentTimeSelector = '#time_container_current';

Connector.durationSelector = '#time_container_duration';

Connector.isPlaying = function() {
	return $('#player *[data-id="play-pause"]').hasClass('playing');
};

'use strict';

/* global Connector */

Connector.playerSelector = '#player';

Connector.trackArtImageSelector = '#playerBarArt';

Connector.artistSelector = '#player-artist';

Connector.getTrack = function() {
	return $('#currently-playing-title').text() ||
		$('#player-song-title').text() || null;
}

Connector.albumSelector = '.player-album';

Connector.currentTimeSelector = '#time_container_current';

Connector.durationSelector = '#time_container_duration';

Connector.isPlaying = function() {
	return $('#player *[data-id="play-pause"]').hasClass('playing');
};

Replace trackSelector with getTrack function
Replace trackSelector with getTrack function

The IDs being used by Google seem to be in flux, this tries the new ID
first before falling back to the old one.
