mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-06 07:48:50 +01:00
add connect to startup wizard
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using MediaBrowser.Model.Connect;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Model.ApiClient
|
||||
{
|
||||
@@ -7,6 +8,7 @@ namespace MediaBrowser.Model.ApiClient
|
||||
public ConnectionState State { get; set; }
|
||||
public List<ServerInfo> Servers { get; set; }
|
||||
public IApiClient ApiClient { get; set; }
|
||||
public ConnectUser ConnectUser { get; set; }
|
||||
|
||||
public ConnectionResult()
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System.Collections.Generic;
|
||||
using MediaBrowser.Model.Connect;
|
||||
using MediaBrowser.Model.Connect;
|
||||
using MediaBrowser.Model.Dto;
|
||||
using MediaBrowser.Model.Events;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
@@ -14,12 +14,29 @@ namespace MediaBrowser.Model.ApiClient
|
||||
/// Occurs when [connected].
|
||||
/// </summary>
|
||||
event EventHandler<GenericEventArgs<ConnectionResult>> Connected;
|
||||
/// <summary>
|
||||
/// Occurs when [local user sign in].
|
||||
/// </summary>
|
||||
event EventHandler<GenericEventArgs<UserDto>> LocalUserSignIn;
|
||||
/// <summary>
|
||||
/// Occurs when [connect user sign in].
|
||||
/// </summary>
|
||||
event EventHandler<GenericEventArgs<ConnectUser>> ConnectUserSignIn;
|
||||
/// <summary>
|
||||
/// Occurs when [local user sign out].
|
||||
/// </summary>
|
||||
event EventHandler<EventArgs> LocalUserSignOut;
|
||||
/// <summary>
|
||||
/// Occurs when [connect user sign out].
|
||||
/// </summary>
|
||||
event EventHandler<EventArgs> ConnectUserSignOut;
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when [remote logged out].
|
||||
/// Gets the connect user.
|
||||
/// </summary>
|
||||
event EventHandler<EventArgs> RemoteLoggedOut;
|
||||
|
||||
/// <value>The connect user.</value>
|
||||
ConnectUser ConnectUser { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the API client.
|
||||
/// </summary>
|
||||
|
||||
@@ -238,6 +238,103 @@ namespace MediaBrowser.Model.Configuration
|
||||
{
|
||||
new MetadataOptions(1, 1280) {ItemType = "Book"},
|
||||
|
||||
new MetadataOptions(1, 1280)
|
||||
{
|
||||
ItemType = "Movie",
|
||||
ImageOptions = new []
|
||||
{
|
||||
new ImageOption
|
||||
{
|
||||
Limit = 3,
|
||||
MinWidth = 1280,
|
||||
Type = ImageType.Backdrop
|
||||
},
|
||||
|
||||
// Don't download this by default as it's rarely used.
|
||||
new ImageOption
|
||||
{
|
||||
Limit = 0,
|
||||
Type = ImageType.Art
|
||||
},
|
||||
|
||||
// Don't download this by default as it's rarely used.
|
||||
new ImageOption
|
||||
{
|
||||
Limit = 0,
|
||||
Type = ImageType.Disc
|
||||
},
|
||||
|
||||
new ImageOption
|
||||
{
|
||||
Limit = 1,
|
||||
Type = ImageType.Primary
|
||||
},
|
||||
|
||||
new ImageOption
|
||||
{
|
||||
Limit = 1,
|
||||
Type = ImageType.Banner
|
||||
},
|
||||
|
||||
new ImageOption
|
||||
{
|
||||
Limit = 1,
|
||||
Type = ImageType.Thumb
|
||||
},
|
||||
|
||||
new ImageOption
|
||||
{
|
||||
Limit = 1,
|
||||
Type = ImageType.Logo
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
new MetadataOptions(1, 1280)
|
||||
{
|
||||
ItemType = "Series",
|
||||
ImageOptions = new []
|
||||
{
|
||||
new ImageOption
|
||||
{
|
||||
Limit = 2,
|
||||
MinWidth = 1280,
|
||||
Type = ImageType.Backdrop
|
||||
},
|
||||
|
||||
// Don't download this by default as it's rarely used.
|
||||
new ImageOption
|
||||
{
|
||||
Limit = 0,
|
||||
Type = ImageType.Art
|
||||
},
|
||||
|
||||
new ImageOption
|
||||
{
|
||||
Limit = 1,
|
||||
Type = ImageType.Primary
|
||||
},
|
||||
|
||||
new ImageOption
|
||||
{
|
||||
Limit = 1,
|
||||
Type = ImageType.Banner
|
||||
},
|
||||
|
||||
new ImageOption
|
||||
{
|
||||
Limit = 1,
|
||||
Type = ImageType.Thumb
|
||||
},
|
||||
|
||||
new ImageOption
|
||||
{
|
||||
Limit = 1,
|
||||
Type = ImageType.Logo
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
new MetadataOptions(1, 1280)
|
||||
{
|
||||
ItemType = "MusicAlbum",
|
||||
|
||||
@@ -674,7 +674,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
}
|
||||
case ProfileConditionValue.VideoProfile:
|
||||
{
|
||||
item.VideoProfile = value;
|
||||
item.VideoProfile = (value ?? string.Empty).Split('|')[0];
|
||||
break;
|
||||
}
|
||||
case ProfileConditionValue.Height:
|
||||
|
||||
@@ -426,13 +426,6 @@ xcopy "$(TargetPath)" "$(SolutionDir)\Nuget\dlls\net45\" /y /d /r /i
|
||||
)</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
<Import Project="Fody.targets" />
|
||||
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
|
||||
</Target>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
|
||||
Reference in New Issue
Block a user