function displaySongMetadata() {
		/*
  	Define the image meta data keys. These are managed separately
  	since we aren't actually changing the inner HTML of these elements.
  */
		var imageMetaDataKeys = ['cover_art_url', 'station_art_url', 'podcast_episode_cover_art_url'];

		/*
  	These are the ignored keys that we won't be worrying about displaying.
  	Every other key in the song object can be displayed.
  */
		var ignoredKeys = ['url', 'live'];

		/*
  	Get all of the song info elements
  */
		var songInfoElements = document.querySelectorAll('[amplitude-song-info]');

		/*
  	Iterate over all of the song info elements. We will either
  	set these to the new values, or clear them if the active song
  	doesn't have the info set.
  */
		for (var i = 0; i < songInfoElements.length; i++) {
			/*
   	Get the info so we can check if the active meta data has the
   	key.
   */
			var info = songInfoElements[i].getAttribute('amplitude-song-info');

			/*
   	Get the song info element playlist.
   */
			var playlist = songInfoElements[i].getAttribute('amplitude-playlist');

			/*
   	Get the main song info flag.
   */
			var main = songInfoElements[i].getAttribute('amplitude-main-song-info');

			/*
   	If the playlists match or the element is a main element, then
   	we set the song info.
   */
			if (_config2.default.active_playlist == playlist || main == 'true') {
				/*
    	If the active metadata has the key, then we set it,
    	otherwise we clear it. If it's an image element then
    	we default it to the default info if needed.
    */
				if (_config2.default.active_metadata[info] != undefined) {
					if (imageMetaDataKeys.indexOf(info) >= 0) {
						songInfoElements[i].setAttribute('src', _config2.default.active_metadata[info]);
					} else {
						songInfoElements[i].innerHTML = _config2.default.active_metadata[info];
					}
				} else {
					/*
     	We look for the default album art because
     	the actual key didn't exist. If the default album
     	art doesn't exist then we set the src attribute
     	to null.
     */
					if (imageMetaDataKeys.indexOf(info) >= 0) {
						if (_config2.default.default_album_art != '') {
							songInfoElements[i].setAttribute('src', _config2.default.default_album_art);
						} else {
							songInfoElements[i].setAttribute('src', '');
						}
					} else {
						songInfoElements[i].innerHTML = '';
					}
				}
			}
		}
	}
/**
  * Displays the active song's metadata. This is called after a song has
  * been changed. This method takes the active song and displays the
  * metadata. So once the new active song is set, we update all of the
  * screen elements.
  *
  * @access public
  */
Displays the active song's metadata. This is called after a song has
been changed. This method takes the active song and displays the
metadata. So once the new active song is set, we update all of the
screen elements.

@access public
Displays the active song ' s metadata . This is called after a song has been changed . This method takes the active song and displays the metadata . So once the new active song is set we update all of the screen elements . @access public
function displaySongMetadata() {
		var imageMetaDataKeys = ['cover_art_url', 'station_art_url', 'podcast_episode_cover_art_url'];
		var ignoredKeys = ['url', 'live'];
		var songInfoElements = document.querySelectorAll('[amplitude-song-info]');
		for (var i = 0; i < songInfoElements.length; i++) {
			var info = songInfoElements[i].getAttribute('amplitude-song-info');
			var playlist = songInfoElements[i].getAttribute('amplitude-playlist');
			var main = songInfoElements[i].getAttribute('amplitude-main-song-info');
			if (_config2.default.active_playlist == playlist || main == 'true') {
				if (_config2.default.active_metadata[info] != undefined) {
					if (imageMetaDataKeys.indexOf(info) >= 0) {
						songInfoElements[i].setAttribute('src', _config2.default.active_metadata[info]);
					} else {
						songInfoElements[i].innerHTML = _config2.default.active_metadata[info];
					}
				} else {
					if (imageMetaDataKeys.indexOf(info) >= 0) {
						if (_config2.default.default_album_art != '') {
							songInfoElements[i].setAttribute('src', _config2.default.default_album_art);
						} else {
							songInfoElements[i].setAttribute('src', '');
						}
					} else {
						songInfoElements[i].innerHTML = '';
					}
				}
			}
		}
	}
function displaySongMetadata ( ) { var imageMetaDataKeys = [ 'cover_art_url' , 'station_art_url' , 'podcast_episode_cover_art_url' ] ; var ignoredKeys = [ 'url' , 'live' ] ; var songInfoElements = document . querySelectorAll ( '[amplitude-song-info]' ) ; for ( var i = 0 ; i < songInfoElements . length ; i ++ ) { var info = songInfoElements [ i ] . getAttribute ( 'amplitude-song-info' ) ; var playlist = songInfoElements [ i ] . getAttribute ( 'amplitude-playlist' ) ; var main = songInfoElements [ i ] . getAttribute ( 'amplitude-main-song-info' ) ; if ( _config2 . default . active_playlist == playlist || main == 'true' ) { if ( _config2 . default . active_metadata [ info ] != undefined ) { if ( imageMetaDataKeys . indexOf ( info ) >= 0 ) { songInfoElements [ i ] . setAttribute ( 'src' , _config2 . default . active_metadata [ info ] ) ; } else { songInfoElements [ i ] . innerHTML = _config2 . default . active_metadata [ info ] ; } } else { if ( imageMetaDataKeys . indexOf ( info ) >= 0 ) { if ( _config2 . default . default_album_art != '' ) { songInfoElements [ i ] . setAttribute ( 'src' , _config2 . default . default_album_art ) ; } else { songInfoElements [ i ] . setAttribute ( 'src' , '' ) ; } } else { songInfoElements [ i ] . innerHTML = '' ; } } } } }
Displays the active song's metadata.
Displays the active song ' s metadata .
/*
  	Define the image meta data keys. These are managed separately
  	since we aren't actually changing the inner HTML of these elements.
  */ /*
  	These are the ignored keys that we won't be worrying about displaying.
  	Every other key in the song object can be displayed.
  */ /*
  	Get all of the song info elements
  */ /*
  	Iterate over all of the song info elements. We will either
  	set these to the new values, or clear them if the active song
  	doesn't have the info set.
  */ /*
   	Get the info so we can check if the active meta data has the
   	key.
   */ /*
   	Get the song info element playlist.
   */ /*
   	Get the main song info flag.
   */ /*
   	If the playlists match or the element is a main element, then
   	we set the song info.
   */ /*
    	If the active metadata has the key, then we set it,
    	otherwise we clear it. If it's an image element then
    	we default it to the default info if needed.
    */ /*
     	We look for the default album art because
     	the actual key didn't exist. If the default album
     	art doesn't exist then we set the src attribute
     	to null.
     */