update dialogs
This commit is contained in:
parent
4e0adb17e7
commit
d68a826833
|
@ -1176,17 +1176,21 @@ namespace MediaBrowser.Api.Playback
|
||||||
await Task.Delay(100, cancellationTokenSource.Token).ConfigureAwait(false);
|
await Task.Delay(100, cancellationTokenSource.Token).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state.IsInputVideo && transcodingJob.Type == TranscodingJobType.Progressive)
|
if (state.IsInputVideo && transcodingJob.Type == TranscodingJobType.Progressive && !transcodingJob.HasExited)
|
||||||
{
|
{
|
||||||
await Task.Delay(1000, cancellationTokenSource.Token).ConfigureAwait(false);
|
await Task.Delay(1000, cancellationTokenSource.Token).ConfigureAwait(false);
|
||||||
|
|
||||||
if (state.ReadInputAtNativeFramerate)
|
if (state.ReadInputAtNativeFramerate && !transcodingJob.HasExited)
|
||||||
{
|
{
|
||||||
await Task.Delay(1500, cancellationTokenSource.Token).ConfigureAwait(false);
|
await Task.Delay(1500, cancellationTokenSource.Token).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StartThrottler(state, transcodingJob);
|
if (!transcodingJob.HasExited)
|
||||||
|
{
|
||||||
|
StartThrottler(state, transcodingJob);
|
||||||
|
}
|
||||||
|
|
||||||
ReportUsage(state);
|
ReportUsage(state);
|
||||||
|
|
||||||
return transcodingJob;
|
return transcodingJob;
|
||||||
|
|
|
@ -1057,10 +1057,20 @@ namespace MediaBrowser.Controller.Entities
|
||||||
/// <returns>IList{BaseItem}.</returns>
|
/// <returns>IList{BaseItem}.</returns>
|
||||||
public IList<BaseItem> GetRecursiveChildren()
|
public IList<BaseItem> GetRecursiveChildren()
|
||||||
{
|
{
|
||||||
return GetRecursiveChildren(i => true);
|
return GetRecursiveChildren(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public IList<BaseItem> GetRecursiveChildren(bool includeLinkedChildren)
|
||||||
|
{
|
||||||
|
return GetRecursiveChildren(i => true, includeLinkedChildren);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IList<BaseItem> GetRecursiveChildren(Func<BaseItem, bool> filter)
|
public IList<BaseItem> GetRecursiveChildren(Func<BaseItem, bool> filter)
|
||||||
|
{
|
||||||
|
return GetRecursiveChildren(filter, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public IList<BaseItem> GetRecursiveChildren(Func<BaseItem, bool> filter, bool includeLinkedChildren)
|
||||||
{
|
{
|
||||||
var result = new Dictionary<Guid, BaseItem>();
|
var result = new Dictionary<Guid, BaseItem>();
|
||||||
|
|
||||||
|
|
|
@ -483,7 +483,9 @@ namespace MediaBrowser.Dlna.PlayTo
|
||||||
{
|
{
|
||||||
if (OnDeviceUnavailable != null)
|
if (OnDeviceUnavailable != null)
|
||||||
{
|
{
|
||||||
|
_logger.Debug("Disposing device due to loss of connection");
|
||||||
OnDeviceUnavailable();
|
OnDeviceUnavailable();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (_successiveStopCount >= maxSuccessiveStopReturns)
|
if (_successiveStopCount >= maxSuccessiveStopReturns)
|
||||||
|
|
|
@ -401,7 +401,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||||
var locationType = item.LocationType;
|
var locationType = item.LocationType;
|
||||||
|
|
||||||
var children = item.IsFolder
|
var children = item.IsFolder
|
||||||
? ((Folder)item).GetRecursiveChildren().ToList()
|
? ((Folder)item).GetRecursiveChildren(false).ToList()
|
||||||
: new List<BaseItem>();
|
: new List<BaseItem>();
|
||||||
|
|
||||||
foreach (var metadataPath in GetMetadataPaths(item, children))
|
foreach (var metadataPath in GetMetadataPaths(item, children))
|
||||||
|
|
|
@ -363,7 +363,10 @@ namespace MediaBrowser.Server.Startup.Common
|
||||||
|
|
||||||
private void PerformPreInitMigrations()
|
private void PerformPreInitMigrations()
|
||||||
{
|
{
|
||||||
var migrations = new List<IVersionMigration>();
|
var migrations = new List<IVersionMigration>
|
||||||
|
{
|
||||||
|
new UpdateLevelMigration(ServerConfigurationManager, this, HttpClient, JsonSerializer, _releaseAssetFilename)
|
||||||
|
};
|
||||||
|
|
||||||
foreach (var task in migrations)
|
foreach (var task in migrations)
|
||||||
{
|
{
|
||||||
|
@ -383,8 +386,7 @@ namespace MediaBrowser.Server.Startup.Common
|
||||||
var migrations = new List<IVersionMigration>
|
var migrations = new List<IVersionMigration>
|
||||||
{
|
{
|
||||||
new MovieDbEpisodeProviderMigration(ServerConfigurationManager),
|
new MovieDbEpisodeProviderMigration(ServerConfigurationManager),
|
||||||
new DbMigration(ServerConfigurationManager, TaskManager),
|
new DbMigration(ServerConfigurationManager, TaskManager)
|
||||||
new UpdateLevelMigration(ServerConfigurationManager, this, HttpClient, JsonSerializer, _releaseAssetFilename)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
foreach (var task in migrations)
|
foreach (var task in migrations)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user