function syncDurationHours(hours) {
		/*
  	Gets all of the song hour selectors.
  */
		var hourSelectors = [];

		if (_config2.default.active_playlist != null && _config2.default.active_playlist != '') {
			hourSelectors = ['.amplitude-duration-hours[amplitude-main-duration-hours="true"]', '.amplitude-duration-hours[amplitude-playlist-duration-hours="true"][amplitude-playlist="' + _config2.default.active_playlist + '"]', '.amplitude-duration-hours[amplitude-song-index="' + _config2.default.active_index + '"]'];
		} else {
			hourSelectors = ['.amplitude-duration-hours[amplitude-main-duration-hours="true"]', '.amplitude-duration-hours[amplitude-song-index="' + _config2.default.active_index + '"]'];
		}

		/*
  	Ensures that there are some hour selectors.
  */
		if (document.querySelectorAll(hourSelectors.join()).length > 0) {
			/*
   	Get all of the hour selectors
   */
			var durationHourSelectors = document.querySelectorAll(hourSelectors.join());

			/*
   	Set the duration hour selector's inner html to hours passed in.
   */
			for (var i = 0; i < durationHourSelectors.length; i++) {
				/*
    	If the selector is a main selector, we set the hours.
    */
				if (durationHourSelectors[i].getAttribute('amplitude-main-duration-hours') == 'true') {
					durationHourSelectors[i].innerHTML = hours;
				} else {
					/*
     	If the active playlist is not null or empty
     	and the attribute of the playlist is equal to the
     	active playlist, then we set the inner html.
     */
					if (_config2.default.active_playlist != '' && _config2.default.active_playlist != null && durationHourSelectors[i].getAttribute('amplitude-playlist') == _config2.default.active_playlist) {
						durationHourSelectors[i].innerHTML = hours;
						/*
      	If the active playlist is not set and the selector
      	does not have a playlist then we set the hours. This
      	means that the duration selector is an individual song
      	selector.
      */
					} else if (_config2.default.active_playlist == '' || _config2.default.active_playlist == null && !durationHourSelectors[i].hasAttribute('amplitude-playlist')) {
						durationHourSelectors[i].innerHTML = hours;
						/*
      	If nothing else matches, set the selector's inner HTML to '00'
      */
					} else {
						durationHourSelectors[i].innerHTML = '0';
					}
				}
			}
		}
	}
/**
  * Updates any elements that display the duration hour for the song.
  *
  * @access public
  * @param {number} hours 		- An integer conaining how many hours are in the song
  */
Updates any elements that display the duration hour for the song.
@access public
@param {number} hours               - An integer conaining how many hours are in the song
Updates any elements that display the duration hour for the song . @access public @param { number } hours - An integer conaining how many hours are in the song
function syncDurationHours(hours) {
		var hourSelectors = [];
		if (_config2.default.active_playlist != null && _config2.default.active_playlist != '') {
			hourSelectors = ['.amplitude-duration-hours[amplitude-main-duration-hours="true"]', '.amplitude-duration-hours[amplitude-playlist-duration-hours="true"][amplitude-playlist="' + _config2.default.active_playlist + '"]', '.amplitude-duration-hours[amplitude-song-index="' + _config2.default.active_index + '"]'];
		} else {
			hourSelectors = ['.amplitude-duration-hours[amplitude-main-duration-hours="true"]', '.amplitude-duration-hours[amplitude-song-index="' + _config2.default.active_index + '"]'];
		}
		if (document.querySelectorAll(hourSelectors.join()).length > 0) {
			var durationHourSelectors = document.querySelectorAll(hourSelectors.join());
			for (var i = 0; i < durationHourSelectors.length; i++) {
				if (durationHourSelectors[i].getAttribute('amplitude-main-duration-hours') == 'true') {
					durationHourSelectors[i].innerHTML = hours;
				} else {
					if (_config2.default.active_playlist != '' && _config2.default.active_playlist != null && durationHourSelectors[i].getAttribute('amplitude-playlist') == _config2.default.active_playlist) {
						durationHourSelectors[i].innerHTML = hours;
					} else if (_config2.default.active_playlist == '' || _config2.default.active_playlist == null && !durationHourSelectors[i].hasAttribute('amplitude-playlist')) {
						durationHourSelectors[i].innerHTML = hours;
					} else {
						durationHourSelectors[i].innerHTML = '0';
					}
				}
			}
		}
	}
function syncDurationHours ( hours ) { var hourSelectors = [ ] ; if ( _config2 . default . active_playlist != null && _config2 . default . active_playlist != '' ) { hourSelectors = [ '.amplitude-duration-hours[amplitude-main-duration-hours="true"]' , '.amplitude-duration-hours[amplitude-playlist-duration-hours="true"][amplitude-playlist="' + _config2 . default . active_playlist + '"]' , '.amplitude-duration-hours[amplitude-song-index="' + _config2 . default . active_index + '"]' ] ; } else { hourSelectors = [ '.amplitude-duration-hours[amplitude-main-duration-hours="true"]' , '.amplitude-duration-hours[amplitude-song-index="' + _config2 . default . active_index + '"]' ] ; } if ( document . querySelectorAll ( hourSelectors . join ( ) ) . length > 0 ) { var durationHourSelectors = document . querySelectorAll ( hourSelectors . join ( ) ) ; for ( var i = 0 ; i < durationHourSelectors . length ; i ++ ) { if ( durationHourSelectors [ i ] . getAttribute ( 'amplitude-main-duration-hours' ) == 'true' ) { durationHourSelectors [ i ] . innerHTML = hours ; } else { if ( _config2 . default . active_playlist != '' && _config2 . default . active_playlist != null && durationHourSelectors [ i ] . getAttribute ( 'amplitude-playlist' ) == _config2 . default . active_playlist ) { durationHourSelectors [ i ] . innerHTML = hours ; } else if ( _config2 . default . active_playlist == '' || _config2 . default . active_playlist == null && ! durationHourSelectors [ i ] . hasAttribute ( 'amplitude-playlist' ) ) { durationHourSelectors [ i ] . innerHTML = hours ; } else { durationHourSelectors [ i ] . innerHTML = '0' ; } } } } }
Updates any elements that display the duration hour for the song.
Updates any elements that display the duration hour for the song .
/*
  	Gets all of the song hour selectors.
  */ /*
  	Ensures that there are some hour selectors.
  */ /*
   	Get all of the hour selectors
   */ /*
   	Set the duration hour selector's inner html to hours passed in.
   */ /*
    	If the selector is a main selector, we set the hours.
    */ /*
     	If the active playlist is not null or empty
     	and the attribute of the playlist is equal to the
     	active playlist, then we set the inner html.
     */ /*
      	If the active playlist is not set and the selector
      	does not have a playlist then we set the hours. This
      	means that the duration selector is an individual song
      	selector.
      */ /*
      	If nothing else matches, set the selector's inner HTML to '00'
      */