mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-21 13:10:45 +02:00
fixed offline titles not displaying
This commit is contained in:
parent
ebd3e25ed3
commit
40ee886f2e
|
@ -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