Skip to content

Commit

Permalink
Fixed "Stop" unsubscribe "Start" bug #7
Browse files Browse the repository at this point in the history
  • Loading branch information
derekantrican committed Jan 3, 2018
1 parent 1b0ff6e commit be804de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ private void buttonStart_Click(object sender, EventArgs e)
userSubscriptions.Add(sub);
}

//Remove any extraneous (unsubscribed) subscriptions
List<Subscription> 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
{
Expand Down

0 comments on commit be804de

Please sign in to comment.