<commit_before>'use strict';

Connector.playerSelector = 'body';

Connector.getArtistTrack = () => {
	let artistTrack = $('#nowplaying > table > tbody > tr > td > table:nth-child(1) > tbody > tr:nth-child(3) > td').text();
	artistTrack = artistTrack.replace('Now Playing:', '');

	return Util.splitArtistTrack(artistTrack);
};

Connector.trackArtSelector = '#bio img';

Connector.isPlaying = () => $('#jp_container_1').hasClass('jp-state-playing');

Connector.isScrobblingAllowed = () => {
	const artistTrack = Connector.getArtistTrack();

	return artistTrack !== 'Dandelion Radio - next show on the hour';
};<commit_msg>Fix connector for dandelionradio.com (#3359)<commit_after>'use strict';

Connector.playerSelector = 'body';

Connector.getTrackInfo = () => {
	const artistTrackElement = document.querySelector('#nowplaying > table table tbody > tr:nth-of-type(3) font');

	if (artistTrackElement && artistTrackElement.childNodes.length > 2) {
		return {
			artist: artistTrackElement.childNodes[1].textContent,
			track: artistTrackElement.childNodes[2].textContent.substring(3), // omit dash and spaces
		};
	}

	return null;
};

Connector.trackArtSelector = '#bio .img-left-text img';

Connector.isPlaying = () => Util.hasElementClass('#jp_container_1', 'jp-state-playing');

Connector.isScrobblingAllowed = () => Connector.getTrackInfo();
{'fraction_non_alphanumeric': 0.15985130111524162, 'fraction_numerical': 0.009665427509293681, 'mean_word_length': 5.598039215686274, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 20, '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': '906628', 'n_tokens_mistral': 447, 'n_tokens_neox': 429, 'n_words': 80}