<commit_before>'use strict';

Connector.playerSelector = '.player__main';

Connector.artistTrackSelector = 'span.title--title';

Connector.getArtistTrack = () => {
	let text = $(Connector.artistTrackSelector).text();
	let m = text.match(/"(.*)" von (.*)/);
	if (m && (m.length === 3)) {
		return { artist: m[2], track: m[1] };
	}
	return Util.splitArtistTrack(text);
};

Connector.isPlaying = () => {
	return $('.jp-audio').hasClass('jp-state-playing');
};<commit_msg>Adapted "deutschlandfunknova" connector after site changes<commit_after>'use strict';

Connector.playerSelector = 'div.player.desktop';

Connector.artistTrackSelector = '.playing-title';

Connector.getArtistTrack = () => {
	let text = $(Connector.artistTrackSelector).text();
	let m = text.match(/"(.*?)" von (.*?) · /);
	if (m && (m.length === 3)) {
		// Sometimes the title box displays something like '"undefined" von undefined'
		if (m[2].toLowerCase() == "undefined") {
			return null;
		}
		return { artist: m[2], track: m[1] };
	}
	return Util.splitArtistTrack(text);
};

Connector.isPlaying = () => {
	return $('.plyr--playing').length > 0;
};
{'fraction_non_alphanumeric': 0.2064343163538874, 'fraction_numerical': 0.0071492403932082215, 'mean_word_length': 4.490196078431373, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2872769', 'n_tokens_mistral': 404, 'n_tokens_neox': 389, 'n_words': 78}