<commit_before>'use strict';

Connector.playerSelector = '.qt-musicplayer';

Connector.artistTrackSelector = '#streamCurrentlyPlaying';

Connector.getArtistTrack = () => {
	let text = $(Connector.artistTrackSelector).text().replace('NOW PLAYING:', '');
	return Util.splitArtistTrack(text);
};

Connector.pauseButtonSelector = '.sm2_playing';<commit_msg>Improve playirish connector<commit_after>'use strict';

const filter = new MetadataFilter({ artist: removeNowPlayingPrefix });

Connector.playerSelector = '.qt-musicplayer';

Connector.artistTrackSelector = '#streamCurrentlyPlaying';

Connector.pauseButtonSelector = '.sm2_playing';

Connector.applyFilter(filter);

function removeNowPlayingPrefix(artist) {
	return artist.replace('NOW PLAYING:', '');
}
{'fraction_non_alphanumeric': 0.1402116402116402, 'fraction_numerical': 0.0026455026455026454, 'mean_word_length': 7.8023255813953485, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2105423', 'n_tokens_mistral': 230, 'n_tokens_neox': 222, 'n_words': 36}