From be804de176c384dcffdcbbd3cd66bcd67de9ed77 Mon Sep 17 00:00:00 2001 From: derekantrican Date: Wed, 3 Jan 2018 15:00:57 -0800 Subject: [PATCH] Fixed "Stop" unsubscribe "Start" bug #7 --- Form1.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Form1.cs b/Form1.cs index c1595dd..399007d 100644 --- a/Form1.cs +++ b/Form1.cs @@ -179,6 +179,11 @@ private void buttonStart_Click(object sender, EventArgs e) userSubscriptions.Add(sub); } + //Remove any extraneous (unsubscribed) subscriptions + List unsubscribedSubscriptions = userSubscriptions.Where(p => tempUserSubscriptions.Where(o => o.Title == p.Title).FirstOrDefault() == null).ToList(); + foreach (Subscription unsubscribedSubscription in unsubscribedSubscriptions) + userSubscriptions.Remove(unsubscribedSubscription); + if (Settings.Instance.SerializeSubscriptions && (Settings.Instance.DownloadVideos || Settings.Instance.AddToPocket)) //Don't run unnecessary iterations if the user doesn't want to download or add them to Pocket {