private void button2_Click(object sender, EventArgs e) { new Thread(() => { try { log("Unliking all..."); foreach (var item in listBox1.Items) { var sc = new SoundCloud((string)item); if (File.Exists(".\\liked\\" + sc.GetOAuth() + ".txt")) { foreach (var line in File.ReadAllLines(".\\liked\\" + sc.GetOAuth() + ".txt")) { if (line.Length < 3) { continue; } sc.UnLikeTrack(line); log("Unliked " + line); } File.Delete(".\\liked\\" + sc.GetOAuth() + ".txt"); } } } catch { } log("Finished unliking"); }).Start(); }
public FollowSession(SoundCloud sc) : base(sc, "user") { }
public LikeSession(SoundCloud sc) : base(sc, "track") { }
public Session(SoundCloud sc, string accepted) { this.sc = sc; this.accepted = accepted; Count = 0; }
public CommentSession(SoundCloud sc) : base(sc, "track") { }