mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 06:53:07 +03:00
added play to config page
This commit is contained in:
@@ -81,7 +81,13 @@ namespace MediaBrowser.Server.Implementations.Collections
|
||||
throw new ArgumentNullException("parentId");
|
||||
}
|
||||
|
||||
return _libraryManager.GetItemById(parentId.Value) as Folder;
|
||||
var folder = _libraryManager.GetItemById(parentId.Value) as Folder;
|
||||
|
||||
// Find an actual physical folder
|
||||
if (folder is CollectionFolder)
|
||||
{
|
||||
return _libraryManager.RootFolder.Children.OfType<Folder>().First(i => folder.PhysicalLocations.Contains(i.Path, StringComparer.OrdinalIgnoreCase));
|
||||
}
|
||||
}
|
||||
|
||||
return _libraryManager.RootFolder.Children.OfType<ManualCollectionsFolder>().FirstOrDefault() ??
|
||||
|
||||
Reference in New Issue
Block a user