function syncSongsMetaData() {
		/*
  	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++) {

			/*
   	For this method we do not want the element to have any playlist or
   	main song info. This way we aren't adjusting the main song information for the
   	global player or the playlist player.
   */
			if (songInfoElements[i].getAttribute('amplitude-playlist') == null && songInfoElements[i].getAttribute('amplitude-main-song-info') == null && songInfoElements[i].getAttribute('amplitude-song-index') != null) {

				/*
    		Get the info so we can check if the active meta data has the
    		key.
    	*/
				var info = songInfoElements[i].getAttribute('amplitude-song-info');
				var index = songInfoElements[i].getAttribute('amplitude-song-index');

				/*
    	Make sure that the song index they are referencing is defined.
    */
				if (_config2.default.songs[index][info] != undefined) {

					/*
     	If it's an image meta data key, then we set the src attribute of
     	the element. Otherwise we set the inner HTML of the element.
     */
					if (imageMetaDataKeys.indexOf(info) >= 0) {
						songInfoElements[i].setAttribute('src', _config2.default.songs[index][info]);
					} else {
						songInfoElements[i].innerHTML = _config2.default.songs[index][info];
					}
				}
			}
		}
	}
/**
  * Sets the meta data for songs loaded in the songs array
  */
Sets the meta data for songs loaded in the songs array
Sets the meta data for songs loaded in the songs array
function syncSongsMetaData() {
		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++) {
			if (songInfoElements[i].getAttribute('amplitude-playlist') == null && songInfoElements[i].getAttribute('amplitude-main-song-info') == null && songInfoElements[i].getAttribute('amplitude-song-index') != null) {
				var info = songInfoElements[i].getAttribute('amplitude-song-info');
				var index = songInfoElements[i].getAttribute('amplitude-song-index');
				if (_config2.default.songs[index][info] != undefined) {
					if (imageMetaDataKeys.indexOf(info) >= 0) {
						songInfoElements[i].setAttribute('src', _config2.default.songs[index][info]);
					} else {
						songInfoElements[i].innerHTML = _config2.default.songs[index][info];
					}
				}
			}
		}
	}
function syncSongsMetaData ( ) { 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 ++ ) { if ( songInfoElements [ i ] . getAttribute ( 'amplitude-playlist' ) == null && songInfoElements [ i ] . getAttribute ( 'amplitude-main-song-info' ) == null && songInfoElements [ i ] . getAttribute ( 'amplitude-song-index' ) != null ) { var info = songInfoElements [ i ] . getAttribute ( 'amplitude-song-info' ) ; var index = songInfoElements [ i ] . getAttribute ( 'amplitude-song-index' ) ; if ( _config2 . default . songs [ index ] [ info ] != undefined ) { if ( imageMetaDataKeys . indexOf ( info ) >= 0 ) { songInfoElements [ i ] . setAttribute ( 'src' , _config2 . default . songs [ index ] [ info ] ) ; } else { songInfoElements [ i ] . innerHTML = _config2 . default . songs [ index ] [ info ] ; } } } } }
Sets the meta data for songs loaded in the songs array
Sets the meta data for songs loaded in the songs array
/*
  	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.
  */ /*
   	For this method we do not want the element to have any playlist or
   	main song info. This way we aren't adjusting the main song information for the
   	global player or the playlist player.
   */ /*
    		Get the info so we can check if the active meta data has the
    		key.
    	*/ /*
    	Make sure that the song index they are referencing is defined.
    */ /*
     	If it's an image meta data key, then we set the src attribute of
     	the element. Otherwise we set the inner HTML of the element.
     */