void SaveToCache (Track track)
{
try {
Directory.CreateDirectory (Path.GetDirectoryName (ScrobbleCache));
File.AppendAllText (ScrobbleCache, JsonConvert.SerializeObject (track));
} catch (Exception ex) {
LoggingService.LogError (ex, "Could not append to the scrobble cache. Data is lost!");
}
}