src/providers/subscene.js
function parseSearchResults (html) {
  const $ = cheerio.load(html)
  return $('a')
    .filter(function (index, element) {
      const spans = $(element).find('span')
      return spans.length === 2 && spans.eq(0).text().trim() === 'English'
    })
    .map(function (index, element) {
      const title = $(element).find('span').eq(1).text().trim()
      const url = $(element).attr('href')
      return new SearchResult({
        title: title,
        url: url
      })
    })
    .get()
}
function parseSearchResults (html) {
  const $ = cheerio.load(html)
  return $('a')
    .filter(function (index, element) {
      const spans = $(element).find('span')
      return spans.length === 2 && spans.eq(0).text().trim() === 'English'
    })
    .map(function (index, element) {
      const title = $(element).find('span').eq(1).text().trim()
      const url = $(element).attr('href')
      return new SearchResult({
        title: title,
        url: url
      })
    })
    .get()
}
function parseSearchResults ( html ) { const $ = cheerio . load ( html ) return $ ( 'a' ) . filter ( function ( index , element ) { const spans = $ ( element ) . find ( 'span' ) return spans . length === 2 && spans . eq ( 0 ) . text ( ) . trim ( ) === 'English' } ) . map ( function ( index , element ) { const title = $ ( element ) . find ( 'span' ) . eq ( 1 ) . text ( ) . trim ( ) const url = $ ( element ) . attr ( 'href' ) return new SearchResult ( { title : title , url : url } ) } ) . get ( ) }
Parse an HTML document that contains a list of SubScene search results.

@param {string} html
@returns {Array<SearchResult>} the list of search results
Parse an HTML document that contains a list of SubScene search results .