'use strict';

/* global Connector */

Connector.playerSelector = '.player-controls';

Connector.artistSelector = '.track_type_player .track__artists';

Connector.trackSelector = '.track_type_player .track__title';

Connector.currentTimeSelector = '.progress__left';

Connector.durationSelector = '.progress__right';

Connector.isPlaying = function () {
	return $('.player-controls__btn_play').hasClass('player-controls__btn_pause');
};

'use strict';

/* global Connector */

Connector.playerSelector = '.player-controls';

Connector.artistSelector = '.track_type_player .track__artists';

Connector.trackSelector = '.track_type_player .track__title';

Connector.currentTimeSelector = '.progress__left';

Connector.durationSelector = '.progress__right';

Connector.getUniqueID = function() {
	var trackUrl = $('.track_type_player .track__title').attr('href');
	if (trackUrl) {
		return trackUrl.split('/').pop();
	}
	return null;
};

Connector.isPlaying = function () {
	return $('.player-controls__btn_play').hasClass('player-controls__btn_pause');
};

Implement `getUniqueID` for Yandex connector
Implement `getUniqueID` for Yandex connector
