loljoho-old / poppyGP-player

Don't bother - wrong repo
0 stars 0 forks source link

Schedule Module #3

Open loljoho opened 9 years ago

loljoho commented 9 years ago

angular.module(poppyGP.schedule, []);

/**
 * PSEUDOCODE - POPPYGP SCHEDULE MODULE
 */

// Import XML
var filename = 'playlist.xspf';
var xml = playlistService.get(filename);

// Convert to JSON
var json = toJson(xml);

// Traverse JSON Tracks List
foreach(json, function(track) {
  // Retrieve Track Info
  tracks[] = getTrackInfo(track);
});

// Query Ergast API with Year, Round
//
// insert code here
//
// Verify service responded with one race, `response.MRData.total == 1`

// Add country code to each track
//
// insert code here
//