mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
fixed offline titles not displaying
This commit is contained in:
parent
ebd3e25ed3
commit
40ee886f2e
1 changed files with 14 additions and 1 deletions
|
@ -55,7 +55,20 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers
|
||||||
private string GetCollectionType(ItemResolveArgs args)
|
private string GetCollectionType(ItemResolveArgs args)
|
||||||
{
|
{
|
||||||
return args.FileSystemChildren
|
return args.FileSystemChildren
|
||||||
.Where(i => (i.Attributes & FileAttributes.Directory) != FileAttributes.Directory && string.Equals(".collection", i.Extension, StringComparison.OrdinalIgnoreCase))
|
.Where(i =>
|
||||||
|
{
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return (i.Attributes & FileAttributes.Directory) != FileAttributes.Directory &&
|
||||||
|
string.Equals(".collection", i.Extension, StringComparison.OrdinalIgnoreCase);
|
||||||
|
}
|
||||||
|
catch (IOException)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
.Select(i => Path.GetFileNameWithoutExtension(i.FullName))
|
.Select(i => Path.GetFileNameWithoutExtension(i.FullName))
|
||||||
.FirstOrDefault();
|
.FirstOrDefault();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue