From 561ba4f34a993534702c906877f4370a040a976b Mon Sep 17 00:00:00 2001 From: Mario Steele Date: Mon, 21 Jul 2025 17:05:27 -0500 Subject: [PATCH 1/6] Updated Playlist Updated code to filter out videos that have been removed from the playlist, and insert new ones into the list in the Update() function. --- FreeTubeSync/Model/Playlist.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/FreeTubeSync/Model/Playlist.cs b/FreeTubeSync/Model/Playlist.cs index 2d1627e..6f2abb7 100644 --- a/FreeTubeSync/Model/Playlist.cs +++ b/FreeTubeSync/Model/Playlist.cs @@ -1,5 +1,6 @@ using System.ComponentModel.DataAnnotations; using System.Diagnostics.CodeAnalysis; +using Microsoft.EntityFrameworkCore.Query.Internal; namespace FreeTubeSync.Model; @@ -18,7 +19,20 @@ public class Playlist { if (other.playlistName != playlistName) playlistName = other.playlistName; if (other.@protected != @protected) @protected = other.@protected; - if (other.videos.Count != videos.Count) videos = other.videos; + var remove = new List