mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
update .net core project
This commit is contained in:
parent
f52df8d612
commit
00760f7d24
@ -19,11 +19,6 @@ namespace Emby.Server
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool IsRunningAsService
|
|
||||||
{
|
|
||||||
get { return false; }
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void RestartInternal()
|
protected override void RestartInternal()
|
||||||
{
|
{
|
||||||
Program.Restart();
|
Program.Restart();
|
||||||
@ -34,41 +29,6 @@ namespace Emby.Server
|
|||||||
Program.Shutdown();
|
Program.Shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override FFMpegInstallInfo GetFfmpegInstallInfo()
|
|
||||||
{
|
|
||||||
var info = new FFMpegInstallInfo();
|
|
||||||
|
|
||||||
if (EnvironmentInfo.OperatingSystem == OperatingSystem.Windows)
|
|
||||||
{
|
|
||||||
info.FFMpegFilename = "ffmpeg.exe";
|
|
||||||
info.FFProbeFilename = "ffprobe.exe";
|
|
||||||
info.Version = "20160410";
|
|
||||||
info.ArchiveType = "7z";
|
|
||||||
info.DownloadUrls = GetDownloadUrls();
|
|
||||||
}
|
|
||||||
|
|
||||||
return info;
|
|
||||||
}
|
|
||||||
|
|
||||||
private string[] GetDownloadUrls()
|
|
||||||
{
|
|
||||||
switch (EnvironmentInfo.SystemArchitecture)
|
|
||||||
{
|
|
||||||
case Architecture.X64:
|
|
||||||
return new[]
|
|
||||||
{
|
|
||||||
"https://github.com/MediaBrowser/Emby.Resources/raw/master/ffmpeg/windows/ffmpeg-20160410-win64.7z"
|
|
||||||
};
|
|
||||||
case Architecture.X86:
|
|
||||||
return new[]
|
|
||||||
{
|
|
||||||
"https://github.com/MediaBrowser/Emby.Resources/raw/master/ffmpeg/windows/ffmpeg-20160410-win32.7z"
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
return new string[] { };
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override List<Assembly> GetAssembliesWithPartsInternal()
|
protected override List<Assembly> GetAssembliesWithPartsInternal()
|
||||||
{
|
{
|
||||||
var list = new List<Assembly>();
|
var list = new List<Assembly>();
|
||||||
@ -78,26 +38,6 @@ namespace Emby.Server
|
|||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void AuthorizeServer()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void ConfigureAutoRunInternal(bool autorun)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void EnableLoopbackInternal(string appName)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool SupportsRunningAsService
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool CanSelfRestart
|
public override bool CanSelfRestart
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -106,14 +46,6 @@ namespace Emby.Server
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool SupportsAutoRunAtStartup
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool CanSelfUpdate
|
public override bool CanSelfUpdate
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -121,13 +53,5 @@ namespace Emby.Server
|
|||||||
return Program.CanSelfUpdate;
|
return Program.CanSelfUpdate;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool SupportsDualModeSockets
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,6 @@
|
|||||||
<ProjectReference Include="..\..\MediaBrowser.XbmcMetadata\MediaBrowser.XbmcMetadata.csproj" />
|
<ProjectReference Include="..\..\MediaBrowser.XbmcMetadata\MediaBrowser.XbmcMetadata.csproj" />
|
||||||
<ProjectReference Include="..\..\OpenSubtitlesHandler\OpenSubtitlesHandler.csproj" />
|
<ProjectReference Include="..\..\OpenSubtitlesHandler\OpenSubtitlesHandler.csproj" />
|
||||||
<ProjectReference Include="..\..\RSSDP\RSSDP.csproj" />
|
<ProjectReference Include="..\..\RSSDP\RSSDP.csproj" />
|
||||||
<ProjectReference Include="..\..\ServiceStack\ServiceStack.csproj" />
|
|
||||||
<ProjectReference Include="..\..\SocketHttpListener.Portable\SocketHttpListener.Portable.csproj" />
|
<ProjectReference Include="..\..\SocketHttpListener.Portable\SocketHttpListener.Portable.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -113,9 +113,6 @@
|
|||||||
"RSSDP": {
|
"RSSDP": {
|
||||||
"target": "project"
|
"target": "project"
|
||||||
},
|
},
|
||||||
"ServiceStack": {
|
|
||||||
"target": "project"
|
|
||||||
},
|
|
||||||
"SocketHttpListener.Portable": {
|
"SocketHttpListener.Portable": {
|
||||||
"target": "project"
|
"target": "project"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user