Skip to content

Commit

Permalink
Restore season count to support bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
ConfusedPolarBear committed Jun 8, 2023
1 parent c3afa7f commit b2f3168
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public TroubleshootingController(
[Produces(MediaTypeNames.Text.Plain)]
public ActionResult<string> GetSupportBundle()
{
var config = Plugin.Instance!.Configuration;
var bundle = new StringBuilder();

bundle.Append("* Jellyfin version: ");
Expand Down Expand Up @@ -69,7 +70,9 @@ public ActionResult<string> GetSupportBundle()

bundle.Append("* Queue contents: ");
bundle.Append(Plugin.Instance!.TotalQueued);
bundle.Append(" episodes\n");
bundle.Append(" episodes, ");
bundle.Append(Plugin.Instance!.TotalSeasons);
bundle.Append(" seasons\n");

bundle.Append("* Warnings: `");
bundle.Append(WarningManager.GetWarnings());
Expand Down
5 changes: 5 additions & 0 deletions ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ public Plugin(
/// </summary>
public int TotalQueued { get; set; }

/// <summary>
/// Gets or sets the number of seasons in the queue.
/// </summary>
public int TotalSeasons { get; set; }

/// <summary>
/// Gets the directory to cache fingerprints in.
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public ReadOnlyDictionary<Guid, List<QueuedEpisode>> GetMediaItems()
}
}

Plugin.Instance!.TotalSeasons = _queuedEpisodes.Count;
Plugin.Instance!.QueuedMediaItems.Clear();
foreach (var kvp in _queuedEpisodes)
{
Expand Down

0 comments on commit b2f3168

Please sign in to comment.