MAL Interest Stacks (#2932)
This commit is contained in:
parent
29eb65c783
commit
b23300b1a4
61 changed files with 4104 additions and 382 deletions
|
|
@ -9,11 +9,16 @@ public static class LibraryTypeHelper
|
|||
{
|
||||
public static MediaFormat GetFormat(LibraryType libraryType)
|
||||
{
|
||||
// TODO: Refactor this to an extension on LibraryType
|
||||
return libraryType switch
|
||||
{
|
||||
LibraryType.Manga => MediaFormat.Manga,
|
||||
LibraryType.Comic => MediaFormat.Comic,
|
||||
LibraryType.LightNovel => MediaFormat.LightNovel,
|
||||
LibraryType.Book => MediaFormat.LightNovel,
|
||||
LibraryType.Image => MediaFormat.Manga,
|
||||
LibraryType.ComicVine => MediaFormat.Comic,
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(libraryType), libraryType, null)
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue