diff --git a/FreeTubeSync/Model/Video.cs b/FreeTubeSync/Model/Video.cs index 0fd1c08..435b33b 100644 --- a/FreeTubeSync/Model/Video.cs +++ b/FreeTubeSync/Model/Video.cs @@ -16,4 +16,16 @@ public class Video public long timeAdded { get; set; } [Key] public string playlistItemId { get; set; } = string.Empty; public string type { get; set; } = string.Empty; + + public void Update(Video other) + { + videoId = other.videoId; + title = other.title; + author = other.author; + authorId = other.authorId; + lengthSeconds = other.lengthSeconds; + pubished = other.pubished; + timeAdded = other.timeAdded; + type = other.type; + } } \ No newline at end of file