Restore season count to support bundle

This commit is contained in:
ConfusedPolarBear 2023-06-08 00:51:18 -05:00
parent c3afa7fc39
commit b2f316856d
3 changed files with 10 additions and 1 deletions

View File

@ -42,6 +42,7 @@ public class TroubleshootingController : ControllerBase
[Produces(MediaTypeNames.Text.Plain)]
public ActionResult<string> GetSupportBundle()
{
var config = Plugin.Instance!.Configuration;
var bundle = new StringBuilder();
bundle.Append("* Jellyfin version: ");
@ -69,7 +70,9 @@ public class TroubleshootingController : ControllerBase
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());

View File

@ -136,6 +136,11 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
/// </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>

View File

@ -79,6 +79,7 @@ public class QueueManager
}
}
Plugin.Instance!.TotalSeasons = _queuedEpisodes.Count;
Plugin.Instance!.QueuedMediaItems.Clear();
foreach (var kvp in _queuedEpisodes)
{