From 1b6ca78e5caf3b8b704576859bbeffd4db5e7c1a Mon Sep 17 00:00:00 2001 From: Kilian von Pflugk Date: Sun, 1 Sep 2024 17:01:24 +0200 Subject: [PATCH] only store relevant info in the xml and make it a lot smaller --- ConfusedPolarBear.Plugin.IntroSkipper/Data/Intro.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Data/Intro.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Data/Intro.cs index d3bbf22..8df7e79 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Data/Intro.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Data/Intro.cs @@ -1,5 +1,6 @@ using System; using System.Globalization; +using System.Runtime.Serialization; using System.Text.Json.Serialization; namespace ConfusedPolarBear.Plugin.IntroSkipper.Data; @@ -8,6 +9,7 @@ namespace ConfusedPolarBear.Plugin.IntroSkipper.Data; /// Result of fingerprinting and analyzing two episodes in a season. /// All times are measured in seconds relative to the beginning of the media file. /// +[DataContract] public class Intro { /// @@ -54,6 +56,7 @@ public class Intro /// /// Gets or sets the Episode ID. /// + [DataMember] public Guid EpisodeId { get; set; } /// @@ -71,11 +74,13 @@ public class Intro /// /// Gets or sets the introduction sequence start time. /// + [DataMember] public double IntroStart { get; set; } /// /// Gets or sets the introduction sequence end time. /// + [DataMember] public double IntroEnd { get; set; } ///