starthq / search

Search provider API docs & integration implementations.
https://starthq.com
32 stars 26 forks source link

8tracks #62

Closed andynosebone closed 10 years ago

andynosebone commented 10 years ago

Implemented a search provider for 8tracks. The result is links to mixes based on the given search term along with its description.

{
  search: [
    {
      type:'audio',
      query:'http://8tracks.com/search/{{term}}/results?format=jsonh',
      translate:'parseJSON(response)',
      name:{
        selector:'.results .mixes .documents .expedited_data .name',
        expression:'element'
      },
      link:{
        selector:'.results .mixes .documents .expedited_data > .web_path',
        expression:'"https://8tracks.com/" + element'
      },
      description:{
        selector:'.results .mixes .documents .expedited_data > .description',
        expression:'element'
      }
    }
  ]
}
olegp commented 10 years ago

Thanks man!