From 0bbb3c36cd6cd459fee56400e5fd36f83db0b038 Mon Sep 17 00:00:00 2001 From: "REPLYNET\\l.consoli" Date: Tue, 2 Dec 2025 14:27:19 +0100 Subject: [PATCH] Add Playlist ToString method --- .../TubeArchivist/Playlist/Playlist.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Jellyfin.Plugin.TubeArchivistMetadata/TubeArchivist/Playlist/Playlist.cs b/Jellyfin.Plugin.TubeArchivistMetadata/TubeArchivist/Playlist/Playlist.cs index 91e0a16..c33e3f7 100644 --- a/Jellyfin.Plugin.TubeArchivistMetadata/TubeArchivist/Playlist/Playlist.cs +++ b/Jellyfin.Plugin.TubeArchivistMetadata/TubeArchivist/Playlist/Playlist.cs @@ -112,5 +112,16 @@ namespace Jellyfin.Plugin.TubeArchivistMetadata.TubeArchivist /// One of the values indicating the playlist's type. [JsonProperty(PropertyName = "playlist_type")] public PlaylistType Type { get; set; } + + /// + /// Returns a string of the playlist's key fields for logging. + /// + /// A string containing the playlist id, name, and entries count. + public override string ToString() + { + return "PlaylistId: " + this.Id + + ", Name: " + this.Name + + ", EntriesCount: " + this.Entries.Count; + } } }