mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-16 12:40:27 +01:00
added image by name api methods
This commit is contained in:
@@ -76,6 +76,16 @@ namespace MediaBrowser.Api
|
||||
{
|
||||
return ResultFactory.GetCachedResult(RequestContext, cacheKey, lastDateModified, cacheDuration, factoryFn, contentType);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To the static file result.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
/// <returns>System.Object.</returns>
|
||||
protected object ToStaticFileResult(string path)
|
||||
{
|
||||
return ResultFactory.GetStaticFileResult(RequestContext, path);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
<Compile Include="BaseApiService.cs" />
|
||||
<Compile Include="DisplayPreferencesService.cs" />
|
||||
<Compile Include="EnvironmentService.cs" />
|
||||
<Compile Include="Images\ImageByNameService.cs" />
|
||||
<Compile Include="Images\ImageRequest.cs" />
|
||||
<Compile Include="Images\ImageService.cs" />
|
||||
<Compile Include="Images\ImageWriter.cs" />
|
||||
|
||||
@@ -635,7 +635,7 @@ namespace MediaBrowser.Api.Playback
|
||||
/// </summary>
|
||||
/// <param name="process">The process.</param>
|
||||
/// <param name="state">The state.</param>
|
||||
protected void OnFfMpegProcessExited(Process process, StreamState state)
|
||||
protected async void OnFfMpegProcessExited(Process process, StreamState state)
|
||||
{
|
||||
if (state.IsoMount != null)
|
||||
{
|
||||
@@ -667,6 +667,8 @@ namespace MediaBrowser.Api.Playback
|
||||
{
|
||||
Logger.Info("Deleting partial stream file(s) {0}", outputFilePath);
|
||||
|
||||
await Task.Delay(1000).ConfigureAwait(false);
|
||||
|
||||
try
|
||||
{
|
||||
DeletePartialStreamFiles(outputFilePath);
|
||||
|
||||
@@ -171,7 +171,8 @@ namespace MediaBrowser.Api
|
||||
{
|
||||
var allEpisodes = series.GetRecursiveChildren(user)
|
||||
.OfType<Episode>()
|
||||
.OrderByDescending(i => i.PremiereDate)
|
||||
.OrderByDescending(i => i.PremiereDate ?? DateTime.MinValue)
|
||||
.ThenByDescending(i => i.IndexNumber ?? 0)
|
||||
.ToList();
|
||||
|
||||
Episode lastWatched = null;
|
||||
|
||||
Reference in New Issue
Block a user