From 0a6b0be3e219ba2df5bd71def7273f97d042861d Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Wed, 27 Feb 2013 12:40:11 +0000 Subject: [PATCH] Update scrapers/mixcloud.com.js --- scrapers/mixcloud.com.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scrapers/mixcloud.com.js b/scrapers/mixcloud.com.js index c16435e..f628f75 100644 --- a/scrapers/mixcloud.com.js +++ b/scrapers/mixcloud.com.js @@ -1,20 +1,20 @@ /** * Mixcloud Playlist Scraper * Created by: Matthias Gutjahr - * Version: 0.1 + * Version: 0.2 * * Notes: * - * To test, go to http://blip.fm/all + * To test, go to http://www.mixcloud.com/DronesOfHell/drones-of-hell-24th-feb-2013-resonance-1044fm/ */ Playgrub.source.url = 'mixcloud.com'; Playgrub.source.error = 'Sorry, no suitable songs could be found'; Playgrub.source.scrape = function() { - $(".cloudcast-long-box").each(function () { - var artist = $(this).find('.cloudcast-creator').html(); - var title = $(this).find('.cloudcast-name').html(); + $(".tracklistcell").each(function () { + var artist = $(this).find('.tracklistartistname').html(); + var title = $(this).find('.tracklisttrackname').html(); Playgrub.playlist.add_track(artist, title); }); } -Playgrub.source.start(); \ No newline at end of file +Playgrub.source.start();