mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 06:53:07 +03:00
fix refresh of tv recordings
This commit is contained in:
@@ -615,13 +615,9 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
}
|
||||
|
||||
var items = command.ItemIds.Select(i => _libraryManager.GetItemById(new Guid(i)))
|
||||
.Where(i => i.LocationType != LocationType.Virtual)
|
||||
.ToList();
|
||||
|
||||
if (items.Any(i => i.LocationType == LocationType.Virtual))
|
||||
{
|
||||
throw new ArgumentException("Virtual items are not playable.");
|
||||
}
|
||||
|
||||
if (command.PlayCommand != PlayCommand.PlayNow)
|
||||
{
|
||||
if (items.Any(i => !session.QueueableMediaTypes.Contains(i.MediaType, StringComparer.OrdinalIgnoreCase)))
|
||||
|
||||
Reference in New Issue
Block a user