old_contents: 'use strict';
  
  /* global Connector Util */
  
  const videoIdRegExp = /v=?([^#\&\?]*).*/;
  
  Connector.playerSelector = '.player-controls';
  
  Connector.artistTrackSelector = '.player-controls > .video-title:first';
  
  Connector.getArtistTrack = function () {
  	var text = $(Connector.artistTrackSelector).text();
  	return Util.processYoutubeVideoTitle(text);
  };
  
  Connector.isPlaying = function() {
  	return $('button:contains(Pause Video)').length > 0;
  };
  
  Connector.getUniqueID = function() {
  	let videoUrl = $('meta[property="og:url"]').attr('content');
  	return getYoutubeVideoIdFromUrl(videoUrl);
  };
  
  function getYoutubeVideoIdFromUrl(videoUrl) {
  	let match = videoUrl.match(videoIdRegExp);
  	if (match) {
  		return match[1];
  	}
  
  	return null;
  }
  
new_contents: 'use strict';
  
  /* global Connector, MetadataFilter, Util */
  
  const videoIdRegExp = /v=?([^#\&\?]*).*/;
  
  Connector.playerSelector = '.player-controls';
  
  Connector.artistTrackSelector = '.player-controls > .video-title:first';
  
  Connector.filter = MetadataFilter.getYoutubeFilter();
  
  Connector.getArtistTrack = function () {
  	var text = $(Connector.artistTrackSelector).text();
  	return Util.processYoutubeVideoTitle(text);
  };
  
  Connector.isPlaying = function() {
  	return $('button:contains(Pause Video)').length > 0;
  };
  
  Connector.getUniqueID = function() {
  	let videoUrl = $('meta[property="og:url"]').attr('content');
  	return getYoutubeVideoIdFromUrl(videoUrl);
  };
  
  function getYoutubeVideoIdFromUrl(videoUrl) {
  	let match = videoUrl.match(videoIdRegExp);
  	if (match) {
  		return match[1];
  	}
  
  	return null;
  }
  
subject: Add metadata filter