Skip to content

Commit

Permalink
fix: one more fix for force movie special featurettes
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed May 2, 2024
1 parent 0379134 commit 917c43f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions Shokofin/API/Info/SeasonInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,16 @@ public SeasonInfo(Series series, DateTime? earliestImportedAt, DateTime? lastImp
altEpisodesList = new();
}

if (Plugin.Instance.Configuration.MovieSpecialsAsExtraFeaturettes && type == SeriesType.Movie && specialsList.Count > 0) {
extrasList.AddRange(specialsList);
specialsAnchorDictionary.Clear();
specialsList = new();
if (Plugin.Instance.Configuration.MovieSpecialsAsExtraFeaturettes && type == SeriesType.Movie) {
if (specialsList.Count > 0) {
extrasList.AddRange(specialsList);
specialsAnchorDictionary.Clear();
specialsList = new();
}
if (altEpisodesList.Count > 0) {
extrasList.AddRange(altEpisodesList);
altEpisodesList = new();
}
}

Id = seriesId;
Expand Down
2 changes: 1 addition & 1 deletion Shokofin/Configuration/configPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ <h3>Library Settings</h3>
<input is="emby-checkbox" type="checkbox" id="MovieSpecialsAsExtraFeaturettes" />
<span>Force movie special featurettes</span>
</label>
<div class="fieldDescription checkboxFieldDescription">Append all specials in AniDB movie series as special featurettes for the movies. By default only some specials will be automatically recognized as special featurettes, but by enabling this option you will force all specials to be used as special featurettes. This setting applies to movie series across all library types.</div>
<div class="fieldDescription checkboxFieldDescription">Append all specials in AniDB movie series as special featurettes for the movies. By default only some specials will be automatically recognized as special featurettes, but by enabling this option you will force all specials to be used as special featurettes. This setting applies to movie series across all library types, and may break some movie series in a show type library unless appropriate measures are taken.</div>
</div>
<div class="checkboxContainer checkboxContainer-withDescription">
<label class="emby-checkbox-label">
Expand Down

0 comments on commit 917c43f

Please sign in to comment.