Restore season count to support bundle
This commit is contained in:
parent
c3afa7fc39
commit
b2f316856d
@ -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());
|
||||
|
@ -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>
|
||||
|
@ -79,6 +79,7 @@ public class QueueManager
|
||||
}
|
||||
}
|
||||
|
||||
Plugin.Instance!.TotalSeasons = _queuedEpisodes.Count;
|
||||
Plugin.Instance!.QueuedMediaItems.Clear();
|
||||
foreach (var kvp in _queuedEpisodes)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user