lib/core.js
function getSongArtistTitle (str, options, plugins) {
  if (options) {
    if (options.defaultArtist) {
      plugins.push(fallBackToArtist(options.defaultArtist))
    }
    if (options.defaultTitle) {
      plugins.push(fallBackToTitle(options.defaultTitle))
    }
  }

  var plugin = reducePlugins(plugins)

  checkPlugin(plugin)

  var split = plugin.split(plugin.before(str))
  if (!split) return

  return plugin.after(split)
}
function getSongArtistTitle (str, options, plugins) {
  if (options) {
    if (options.defaultArtist) {
      plugins.push(fallBackToArtist(options.defaultArtist))
    }
    if (options.defaultTitle) {
      plugins.push(fallBackToTitle(options.defaultTitle))
    }
  }

  var plugin = reducePlugins(plugins)

  checkPlugin(plugin)

  var split = plugin.split(plugin.before(str))
  if (!split) return

  return plugin.after(split)
}
function getSongArtistTitle ( str , options , plugins ) { if ( options ) { if ( options . defaultArtist ) { plugins . push ( fallBackToArtist ( options . defaultArtist ) ) } if ( options . defaultTitle ) { plugins . push ( fallBackToTitle ( options . defaultTitle ) ) } } var plugin = reducePlugins ( plugins ) checkPlugin ( plugin ) var split = plugin . split ( plugin . before ( str ) ) if ( ! split ) return return plugin . after ( split ) }
Get an artist name and song title from a string.
Get an artist name and song title from a string .