Add a check in the infinite loop
This commit is contained in:
parent
9fba024add
commit
4bb0259097
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user