Updated code to correct build errors for Jelyfin.Data and Jellyfin.Database.Implementations
This commit is contained in:
@@ -49,5 +49,5 @@ public enum ActivityLogSortBy
|
||||
/// <summary>
|
||||
/// Sort by severity.
|
||||
/// </summary>
|
||||
LogSeverity = 7
|
||||
LogSeverity = 7,
|
||||
}
|
||||
|
||||
@@ -204,6 +204,6 @@ namespace Jellyfin.Data.Enums
|
||||
/// <summary>
|
||||
/// Item is year.
|
||||
/// </summary>
|
||||
Year
|
||||
Year,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,167 +3,169 @@
|
||||
// </copyright>
|
||||
|
||||
#pragma warning disable SA1300 // The name of a C# element does not begin with an upper-case letter. - disabled due to legacy requirement.
|
||||
using Jellyfin.Data.Attributes;
|
||||
|
||||
namespace Jellyfin.Data.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// Collection type.
|
||||
/// </summary>
|
||||
public enum CollectionType
|
||||
namespace Jellyfin.Data.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// Unknown collection.
|
||||
/// </summary>
|
||||
unknown = 0,
|
||||
using Jellyfin.Data.Attributes;
|
||||
|
||||
/// <summary>
|
||||
/// Movies collection.
|
||||
/// Collection type.
|
||||
/// </summary>
|
||||
movies = 1,
|
||||
public enum CollectionType
|
||||
{
|
||||
/// <summary>
|
||||
/// Unknown collection.
|
||||
/// </summary>
|
||||
unknown = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Tv shows collection.
|
||||
/// </summary>
|
||||
tvshows = 2,
|
||||
/// <summary>
|
||||
/// Movies collection.
|
||||
/// </summary>
|
||||
movies = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Music collection.
|
||||
/// </summary>
|
||||
music = 3,
|
||||
/// <summary>
|
||||
/// Tv shows collection.
|
||||
/// </summary>
|
||||
tvshows = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Music videos collection.
|
||||
/// </summary>
|
||||
musicvideos = 4,
|
||||
/// <summary>
|
||||
/// Music collection.
|
||||
/// </summary>
|
||||
music = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Trailers collection.
|
||||
/// </summary>
|
||||
trailers = 5,
|
||||
/// <summary>
|
||||
/// Music videos collection.
|
||||
/// </summary>
|
||||
musicvideos = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Home videos collection.
|
||||
/// </summary>
|
||||
homevideos = 6,
|
||||
/// <summary>
|
||||
/// Trailers collection.
|
||||
/// </summary>
|
||||
trailers = 5,
|
||||
|
||||
/// <summary>
|
||||
/// Box sets collection.
|
||||
/// </summary>
|
||||
boxsets = 7,
|
||||
/// <summary>
|
||||
/// Home videos collection.
|
||||
/// </summary>
|
||||
homevideos = 6,
|
||||
|
||||
/// <summary>
|
||||
/// Books collection.
|
||||
/// </summary>
|
||||
books = 8,
|
||||
/// <summary>
|
||||
/// Box sets collection.
|
||||
/// </summary>
|
||||
boxsets = 7,
|
||||
|
||||
/// <summary>
|
||||
/// Photos collection.
|
||||
/// </summary>
|
||||
photos = 9,
|
||||
/// <summary>
|
||||
/// Books collection.
|
||||
/// </summary>
|
||||
books = 8,
|
||||
|
||||
/// <summary>
|
||||
/// Live tv collection.
|
||||
/// </summary>
|
||||
livetv = 10,
|
||||
/// <summary>
|
||||
/// Photos collection.
|
||||
/// </summary>
|
||||
photos = 9,
|
||||
|
||||
/// <summary>
|
||||
/// Playlists collection.
|
||||
/// </summary>
|
||||
playlists = 11,
|
||||
/// <summary>
|
||||
/// Live tv collection.
|
||||
/// </summary>
|
||||
livetv = 10,
|
||||
|
||||
/// <summary>
|
||||
/// Folders collection.
|
||||
/// </summary>
|
||||
folders = 12,
|
||||
/// <summary>
|
||||
/// Playlists collection.
|
||||
/// </summary>
|
||||
playlists = 11,
|
||||
|
||||
/// <summary>
|
||||
/// Tv show series collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvshowseries = 101,
|
||||
/// <summary>
|
||||
/// Folders collection.
|
||||
/// </summary>
|
||||
folders = 12,
|
||||
|
||||
/// <summary>
|
||||
/// Tv genres collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvgenres = 102,
|
||||
/// <summary>
|
||||
/// Tv show series collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvshowseries = 101,
|
||||
|
||||
/// <summary>
|
||||
/// Tv genre collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvgenre = 103,
|
||||
/// <summary>
|
||||
/// Tv genres collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvgenres = 102,
|
||||
|
||||
/// <summary>
|
||||
/// Tv latest collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvlatest = 104,
|
||||
/// <summary>
|
||||
/// Tv genre collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvgenre = 103,
|
||||
|
||||
/// <summary>
|
||||
/// Tv next up collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvnextup = 105,
|
||||
/// <summary>
|
||||
/// Tv latest collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvlatest = 104,
|
||||
|
||||
/// <summary>
|
||||
/// Tv resume collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvresume = 106,
|
||||
/// <summary>
|
||||
/// Tv next up collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvnextup = 105,
|
||||
|
||||
/// <summary>
|
||||
/// Tv favorite series collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvfavoriteseries = 107,
|
||||
/// <summary>
|
||||
/// Tv resume collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvresume = 106,
|
||||
|
||||
/// <summary>
|
||||
/// Tv favorite episodes collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvfavoriteepisodes = 108,
|
||||
/// <summary>
|
||||
/// Tv favorite series collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvfavoriteseries = 107,
|
||||
|
||||
/// <summary>
|
||||
/// Latest movies collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
movielatest = 109,
|
||||
/// <summary>
|
||||
/// Tv favorite episodes collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvfavoriteepisodes = 108,
|
||||
|
||||
/// <summary>
|
||||
/// Movies to resume collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
movieresume = 110,
|
||||
/// <summary>
|
||||
/// Latest movies collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
movielatest = 109,
|
||||
|
||||
/// <summary>
|
||||
/// Movie movie collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviemovies = 111,
|
||||
/// <summary>
|
||||
/// Movies to resume collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
movieresume = 110,
|
||||
|
||||
/// <summary>
|
||||
/// Movie collections collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviecollection = 112,
|
||||
/// <summary>
|
||||
/// Movie movie collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviemovies = 111,
|
||||
|
||||
/// <summary>
|
||||
/// Movie favorites collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviefavorites = 113,
|
||||
/// <summary>
|
||||
/// Movie collections collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviecollection = 112,
|
||||
|
||||
/// <summary>
|
||||
/// Movie genres collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviegenres = 114,
|
||||
/// <summary>
|
||||
/// Movie favorites collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviefavorites = 113,
|
||||
|
||||
/// <summary>
|
||||
/// Movie genre collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviegenre = 115
|
||||
/// <summary>
|
||||
/// Movie genres collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviegenres = 114,
|
||||
|
||||
/// <summary>
|
||||
/// Movie genre collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviegenre = 115,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,24 +3,25 @@
|
||||
// </copyright>
|
||||
|
||||
#pragma warning disable SA1300 // Lowercase required for backwards compat.
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Jellyfin.Data.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// Media streaming protocol.
|
||||
/// Lowercase for backwards compatibility.
|
||||
/// </summary>
|
||||
[DefaultValue(http)]
|
||||
public enum MediaStreamProtocol
|
||||
namespace Jellyfin.Data.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// HTTP.
|
||||
/// </summary>
|
||||
http = 0,
|
||||
using System.ComponentModel;
|
||||
|
||||
/// <summary>
|
||||
/// HTTP Live Streaming.
|
||||
/// Media streaming protocol.
|
||||
/// Lowercase for backwards compatibility.
|
||||
/// </summary>
|
||||
hls = 1
|
||||
[DefaultValue(http)]
|
||||
public enum MediaStreamProtocol
|
||||
{
|
||||
/// <summary>
|
||||
/// HTTP.
|
||||
/// </summary>
|
||||
http = 0,
|
||||
|
||||
/// <summary>
|
||||
/// HTTP Live Streaming.
|
||||
/// </summary>
|
||||
hls = 1,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,5 +32,5 @@ public enum MediaType
|
||||
/// <summary>
|
||||
/// Book media.
|
||||
/// </summary>
|
||||
Book = 4
|
||||
Book = 4,
|
||||
}
|
||||
|
||||
@@ -133,5 +133,5 @@ public enum PersonKind
|
||||
/// <summary>
|
||||
/// A person who renders a text from one language into another.
|
||||
/// </summary>
|
||||
Translator
|
||||
Translator,
|
||||
}
|
||||
|
||||
@@ -27,6 +27,6 @@ namespace Jellyfin.Data.Enums
|
||||
/// <summary>
|
||||
/// User must be in a group.
|
||||
/// </summary>
|
||||
IsInGroup = 3
|
||||
IsInGroup = 3,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,6 +52,6 @@ namespace Jellyfin.Data.Enums
|
||||
/// <summary>
|
||||
/// Another type, not covered by the other fields.
|
||||
/// </summary>
|
||||
Other = 8
|
||||
Other = 8,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,5 +22,5 @@ public enum VideoRange
|
||||
/// <summary>
|
||||
/// HDR video range.
|
||||
/// </summary>
|
||||
HDR
|
||||
HDR,
|
||||
}
|
||||
|
||||
@@ -73,5 +73,5 @@ public enum VideoRangeType
|
||||
/// <summary>
|
||||
/// HDR10+ video range type (10bit to 16bit).
|
||||
/// </summary>
|
||||
HDR10Plus
|
||||
HDR10Plus,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user