Rename files
This commit is contained in:
parent
eee11e23bb
commit
a7469db2df
@ -9,18 +9,18 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Controllers;
|
namespace ConfusedPolarBear.Plugin.IntroSkipper.Controllers;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Intro skipper troubleshooting controller. Allows browsing fingerprints on a per episode basis.
|
/// Audio fingerprint visualization controller. Allows browsing fingerprints on a per episode basis.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Authorize(Policy = "RequiresElevation")]
|
[Authorize(Policy = "RequiresElevation")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[Produces(MediaTypeNames.Application.Json)]
|
[Produces(MediaTypeNames.Application.Json)]
|
||||||
[Route("Intros")]
|
[Route("Intros")]
|
||||||
public class TroubleshooterController : ControllerBase
|
public class VisualizationController : ControllerBase
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="TroubleshooterController"/> class.
|
/// Initializes a new instance of the <see cref="VisualizationController"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TroubleshooterController()
|
public VisualizationController()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,11 +60,11 @@ public class TroubleshooterController : ControllerBase
|
|||||||
/// <param name="season">Season name.</param>
|
/// <param name="season">Season name.</param>
|
||||||
/// <returns>List of episode titles.</returns>
|
/// <returns>List of episode titles.</returns>
|
||||||
[HttpGet("Show/{Series}/{Season}")]
|
[HttpGet("Show/{Series}/{Season}")]
|
||||||
public ActionResult<List<TroubleshooterEpisode>> GetSeasonEpisodes(
|
public ActionResult<List<EpisodeVisualization>> GetSeasonEpisodes(
|
||||||
[FromRoute] string series,
|
[FromRoute] string series,
|
||||||
[FromRoute] string season)
|
[FromRoute] string season)
|
||||||
{
|
{
|
||||||
var episodes = new List<TroubleshooterEpisode>();
|
var episodes = new List<EpisodeVisualization>();
|
||||||
|
|
||||||
foreach (var queuedEpisodes in Plugin.Instance!.AnalysisQueue)
|
foreach (var queuedEpisodes in Plugin.Instance!.AnalysisQueue)
|
||||||
{
|
{
|
||||||
@ -81,7 +81,7 @@ public class TroubleshooterController : ControllerBase
|
|||||||
|
|
||||||
foreach (var queuedEpisode in queuedEpisodes.Value)
|
foreach (var queuedEpisode in queuedEpisodes.Value)
|
||||||
{
|
{
|
||||||
episodes.Add(new TroubleshooterEpisode(queuedEpisode.EpisodeId, queuedEpisode.Name));
|
episodes.Add(new EpisodeVisualization(queuedEpisode.EpisodeId, queuedEpisode.Name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -3,16 +3,16 @@ using System;
|
|||||||
namespace ConfusedPolarBear.Plugin.IntroSkipper;
|
namespace ConfusedPolarBear.Plugin.IntroSkipper;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Episode name and internal ID as returned by the troubleshooter.
|
/// Episode name and internal ID as returned by the visualization controller.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class TroubleshooterEpisode
|
public class EpisodeVisualization
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="TroubleshooterEpisode"/> class.
|
/// Initializes a new instance of the <see cref="EpisodeVisualization"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id">Episode id.</param>
|
/// <param name="id">Episode id.</param>
|
||||||
/// <param name="name">Episode name.</param>
|
/// <param name="name">Episode name.</param>
|
||||||
public TroubleshooterEpisode(Guid id, string name)
|
public EpisodeVisualization(Guid id, string name)
|
||||||
{
|
{
|
||||||
Id = id;
|
Id = id;
|
||||||
Name = name;
|
Name = name;
|
Loading…
x
Reference in New Issue
Block a user