mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-26 10:36:57 +01:00
update live stream management
This commit is contained in:
@@ -128,7 +128,7 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
||||
var cacheSize = _config.Configuration.SqliteCacheSize;
|
||||
if (cacheSize <= 0)
|
||||
{
|
||||
cacheSize = Math.Min(Environment.ProcessorCount * 50000, 200000);
|
||||
cacheSize = Math.Min(Environment.ProcessorCount * 50000, 100000);
|
||||
}
|
||||
|
||||
var connection = await DbConnector.Connect(DbFilePath, false, false, 0 - cacheSize).ConfigureAwait(false);
|
||||
@@ -2656,6 +2656,11 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
||||
}
|
||||
}
|
||||
|
||||
if (query.SimilarTo != null)
|
||||
{
|
||||
whereClauses.Add("SimilarityScore > 0");
|
||||
}
|
||||
|
||||
if (query.IsFolder.HasValue)
|
||||
{
|
||||
whereClauses.Add("IsFolder=@IsFolder");
|
||||
|
||||
Reference in New Issue
Block a user