Skip to content

Instantly share code, notes, and snippets.

@jherskowitz
Created April 24, 2011 01:22
Show Gist options
  • Save jherskowitz/939204 to your computer and use it in GitHub Desktop.
Save jherskowitz/939204 to your computer and use it in GitHub Desktop.
Playgrub.source.url = 'http://.*\.simfy.de.*';
Playgrub.source.error = 'Sorry, no tracks were found.'
Playgrub.source.scrape = function() {
$("ul.track").each(function() {
var artist = $(this).find('li.artist_name > a').text();
var song = $(this).find('li.track_title_and_version_title > span').text();
Playgrub.playlist.add_track(artist, song);
});
}
Playgrub.source.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment