cleanup IgnoreListSeason after switching to ids (#307)
This commit is contained in:
parent
ed7e26d63e
commit
133808eb35
@ -1023,7 +1023,7 @@
|
||||
|
||||
// show the ignore list editor.
|
||||
Dashboard.showLoadingMsg();
|
||||
const IgnoreList = await getJson("Intros/IgnoreList/" + encodeURI(selectShow.value));
|
||||
const IgnoreList = await getJson("Intros/IgnoreListSeries/" + encodeURI(selectShow.value));
|
||||
ignorelistIntro.checked = IgnoreList.IgnoreIntro;
|
||||
ignorelistCredits.checked = IgnoreList.IgnoreCredits;
|
||||
ignorelistSection.style.display = "unset";
|
||||
@ -1041,11 +1041,10 @@
|
||||
// season changed, reload all episodes
|
||||
async function seasonChanged() {
|
||||
const seasonData = encodeURI(selectShow.value) + "/" + encodeURI(selectSeason.value);
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
// show the ignore list editor.
|
||||
saveIgnoreListSeasonButton.style.display = "block";
|
||||
const IgnoreList = await getJson("Intros/IgnoreList/" + seasonData);
|
||||
const IgnoreList = await getJson("Intros/IgnoreListSeason/" + encodeURI(selectSeason.value));
|
||||
ignorelistIntro.checked = IgnoreList.IgnoreIntro;
|
||||
ignorelistCredits.checked = IgnoreList.IgnoreCredits;
|
||||
IgnoreListSeasonId = IgnoreList.SeasonId;
|
||||
|
@ -76,11 +76,10 @@ public class VisualizationController(ILogger<VisualizationController> logger) :
|
||||
/// <summary>
|
||||
/// Returns the ignore list for the provided season.
|
||||
/// </summary>
|
||||
/// <param name="seriesId">Show ID.</param>
|
||||
/// <param name="seasonId">Season ID.</param>
|
||||
/// <returns>List of episode titles.</returns>
|
||||
[HttpGet("IgnoreList/{SeriesId}/{SeasonId}")]
|
||||
public ActionResult<IgnoreListItem> GetIgnoreListSeason([FromRoute] Guid seriesId, [FromRoute] Guid seasonId)
|
||||
[HttpGet("IgnoreListSeason/{SeasonId}")]
|
||||
public ActionResult<IgnoreListItem> GetIgnoreListSeason([FromRoute] Guid seasonId)
|
||||
{
|
||||
if (!Plugin.Instance!.QueuedMediaItems.ContainsKey(seasonId))
|
||||
{
|
||||
@ -100,7 +99,7 @@ public class VisualizationController(ILogger<VisualizationController> logger) :
|
||||
/// </summary>
|
||||
/// <param name="seriesId">Show ID.</param>
|
||||
/// <returns>List of episode titles.</returns>
|
||||
[HttpGet("IgnoreList/{SeriesId}")]
|
||||
[HttpGet("IgnoreListSeries/{SeriesId}")]
|
||||
public ActionResult<IgnoreListItem> GetIgnoreListSeries([FromRoute] Guid seriesId)
|
||||
{
|
||||
var seasonIds = Plugin.Instance!.QueuedMediaItems
|
||||
|
Loading…
x
Reference in New Issue
Block a user