old_contents: 'use strict';
  
  Connector.playerSelector = '.sxm-player-controls';
  
  Connector.artistSelector = '.sxm-player-controls .artist-name';
  
  Connector.trackSelector = '.sxm-player-controls .track-name';
  
  Connector.isPlaying = () => {
  	return $('.sxm-player-controls .play-pause-btn').attr('title') === 'Pause';
  };
  
  Connector.trackArtSelector = '.album-image-cell img';
  
  Connector.isScrobblingAllowed = () => {
  	const artist = Connector.getArtist().toLowerCase();
  	return !artist.includes('siriusxmu');
  };
  
new_contents: 'use strict';
  
  /*
   * On some "decade" stations SiriusXM appends the last two digits
   * of the release year to the song title like this: Where Is The Love (03).
   *
   * This filter removes such suffixes.
   */
  
  const filter = new MetadataFilter({ track: removeYear });
  const removeYearRe = /\s\(\d{2}\)\s?$/g;
  
  Connector.playerSelector = '.sxm-player-controls';
  
  Connector.artistSelector = '.sxm-player-controls .artist-name';
  
  Connector.trackSelector = '.sxm-player-controls .track-name';
  
  Connector.isPlaying = () => {
  	return $('.sxm-player-controls .play-pause-btn').attr('title') === 'Pause';
  };
  
  Connector.trackArtSelector = '.album-image-cell img';
  
  Connector.isScrobblingAllowed = () => {
  	const artist = Connector.getArtist();
  	if (artist) {
  		return !artist.toLowerCase().includes('siriusxmu');
  	}
  
  	return false;
  };
  
  Connector.applyFilter(filter);
  
  function removeYear(track) {
  	return track.replace(removeYearRe, '');
  }
  
subject: Fix siriusxm-player connector