-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add series configuration + more
- Added new per-series configuration, stored on the server as custom tags. - Added a new selector to chose between anidb structure, shoko structure, and tmdb structure to use by default for all libraries, and together with the new per-series configuration we allow it to be overridden on a per-series basis, though no UI to do it yet. - Added a new per-series setting to display specials as normal episodes after the normal episodes.
- Loading branch information
Showing
9 changed files
with
152 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
namespace Shokofin.Configuration; | ||
|
||
public class SeriesConfiguration | ||
{ | ||
public SeriesStructureType StructureType { get; set; } | ||
|
||
public SeriesMergingOverride MergeOverride { get; set; } | ||
|
||
public bool EpisodesAsSpecials { get; set; } | ||
|
||
public bool SpecialsAsEpisodes { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
namespace Shokofin.Configuration; | ||
|
||
public enum SeriesMergingOverride { | ||
None = 0, | ||
NoMerge = 1, | ||
MergeForward = 2, | ||
MergeBackward = 3, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
namespace Shokofin.Configuration; | ||
|
||
/// <summary> | ||
/// Library structure type to use for series. | ||
/// </summary> | ||
public enum SeriesStructureType { | ||
/// <summary> | ||
/// Structure the libraries as AniDB anime. | ||
/// </summary> | ||
AniDB_Anime, | ||
/// <summary> | ||
/// Structure the libraries using Shoko's group structure. | ||
/// </summary> | ||
Shoko_Groups, | ||
/// <summary> | ||
/// Structure the libraries as TMDB series and/or movies. | ||
/// </summary> | ||
TMDB_SeriesAndMovies, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters