mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
#595 - Linux/Unix file quantity limitation for ImagesByName/People folder
This commit is contained in:
parent
73b294b4ce
commit
731bb1389a
@ -701,18 +701,13 @@ namespace MediaBrowser.Server.Implementations.Library
|
|||||||
throw new ArgumentNullException();
|
throw new ArgumentNullException();
|
||||||
}
|
}
|
||||||
|
|
||||||
var validFilename = FileSystem.GetValidFilename(name);
|
var validFilename = FileSystem.GetValidFilename(name).Trim();
|
||||||
|
|
||||||
string subFolderPrefix = null;
|
string subFolderPrefix = null;
|
||||||
|
|
||||||
if (typeof(T) == typeof(Person) && ConfigurationManager.Configuration.EnablePeoplePrefixSubFolders)
|
if (typeof(T) == typeof(Person) && ConfigurationManager.Configuration.EnablePeoplePrefixSubFolders)
|
||||||
{
|
{
|
||||||
subFolderPrefix = validFilename.Substring(0, 1);
|
subFolderPrefix = validFilename.Substring(0, 1);
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(subFolderPrefix))
|
|
||||||
{
|
|
||||||
subFolderPrefix = "0";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var key = string.IsNullOrEmpty(subFolderPrefix) ?
|
var key = string.IsNullOrEmpty(subFolderPrefix) ?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user