mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-21 00:05:26 +03:00
Compute hash only when one is not computed in DB, small optimizations here and there
This commit is contained in:
@@ -1141,20 +1141,10 @@ namespace Emby.Server.Implementations.Data
|
||||
|
||||
public string ToValueString(ItemImageInfo image)
|
||||
{
|
||||
var delimeter = "*";
|
||||
const string delimeter = "*";
|
||||
|
||||
var path = image.Path;
|
||||
var hash = image.Hash;
|
||||
|
||||
if (path == null)
|
||||
{
|
||||
path = string.Empty;
|
||||
}
|
||||
|
||||
if (hash == null)
|
||||
{
|
||||
hash = string.Empty;
|
||||
}
|
||||
var path = image.Path ?? string.Empty;
|
||||
var hash = image.Hash ?? string.Empty;
|
||||
|
||||
return GetPathToSave(path) +
|
||||
delimeter +
|
||||
|
||||
Reference in New Issue
Block a user