Add a check in the infinite loop

This commit is contained in:
Mike Heier 2024-09-08 12:41:48 -04:00
parent 9fba024add
commit 4bb0259097

View File

@ -155,7 +155,7 @@ namespace MediaBrowser.Controller.Entities
if (!string.IsNullOrEmpty(PrimaryVersionId))
{
var item = LibraryManager.GetItemById(PrimaryVersionId);
if (item is Video video)
if (item is Video video && video != this)
{
return video.MediaSourceCount;
}