Cheesegeezer 3087 Posted February 8, 2023 Share Posted February 8, 2023 Morning Chaps. I'm having errors pop up in Vantage Point due to Set Method in InternalItemsQuery being non existent. Let me show you. The ExcludeOwnerIds - throws an System.MissingException when collecting the intros and also the HasOwnerId. This is the specific line for the exception System.MissingMethodException: System.MissingMethodException: Method not found: 'System.Nullable`1<Boolean> MediaBrowser.Controller.Entities.InternalItemsQuery.get_HasOwnerId()'. InternalItemsQuery query = new InternalItemsQuery(user) { SimilarTo = selectSimilar, Limit = vpItem.NumberOfItemsToPlay, BlockUnratedItems = (UnratedItem[]) (vpItem.EnableParentalControl ? (Array) new[] {(UnratedItem) 1} : Array.Empty<UnratedItem>()), ExcludeOwnerIds = new[] { item.InternalId }, IsPlayed = vpItem.IncludeWatchedTrailers ? null : new bool?(false), AllowOwnedItems = true, IncludeItemTypes = new[] {nameof(Trailer)} }; var oId = query.HasOwnerId != false ? query.OwnerId : (long?) null; _logger.Info("OwnerId = {0} -- ItemId = {1}", oId.ToString(), item.InternalId.ToString()); Log extract here. Identical for both the properties mentioned. I just comment out the ExcludeownerId's query and to allow the code to fail at the HasOwnerId bool. 2023-02-08 08:27:02.203 Info Vantage Point: Getting Movie/Episode Intros 2023-02-08 08:27:02.203 Debug XmlSerializer: Deserializing file C:\Users\davey\AppData\Roaming\Emby-Server\programdata\plugins\configurations\VantagePoint.xml 2023-02-08 08:27:02.217 Info Vantage Point: Getting Intro Results for Movies - Movie Name = Ready Player One 2023-02-08 08:27:02.218 Debug Vantage Point: SingleIntro Found at Index 0 2023-02-08 08:27:02.218 Debug Vantage Point: Folder Found at Index 1 2023-02-08 08:27:02.222 Debug Vantage Point: Trailer Found at Index 2 2023-02-08 08:27:02.223 Error App: Error getting intros *** Error Report *** Version: 4.8.0.21 Command line: C:\Users\davey\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp Operating system: Microsoft Windows 10.0.19044 Framework: .NET 6.0.10 OS/Process: x64/x64 Runtime: C:/Users/davey/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll Processor count: 8 Data path: C:\Users\davey\AppData\Roaming\Emby-Server\programdata Application path: C:\Users\davey\AppData\Roaming\Emby-Server\system System.MissingMethodException: System.MissingMethodException: Method not found: 'System.Nullable`1<Boolean> MediaBrowser.Controller.Entities.InternalItemsQuery.get_HasOwnerId()'. at VPCode.VantagePoint.VPIntroProvider.GetInternalTrailers(BaseItem item, User user, VPItem vpItem) at VPCode.VantagePoint.VPIntroProvider.GetResultForMovies(BaseItem item, User user, PluginConfiguration config) at VPCode.VantagePoint.VPIntroProvider.GetIntros(BaseItem item, User user) at Emby.Server.Implementations.Library.LibraryManager.GetIntros(IIntroProvider provider, BaseItem item, User user) Source: VantagePoint TargetSite: System.Collections.Generic.List`1[MediaBrowser.Controller.Library.IntroInfo] GetInternalTrailers(MediaBrowser.Controller.Entities.BaseItem, MediaBrowser.Controller.Entities.User, VPCode.VantagePoint.Configuration.VPItem) Currently testing on 4.7.9 nuget and the property is there InternalItemsQuery. but running on 4.8.0.21 Server I have also tried on 4.8.0.20 beta9 nuget and checked the InternalItemQuery Class thru intellisense but exactly the same occurs. Help me Obi Wan - your my only hope. Link to comment Share on other sites More sharing options...
Luke 37093 Posted February 8, 2023 Share Posted February 8, 2023 Hi, if you're developing against the beta then make sure to use the beta nuget package. OwnerId is deprecated in the beta server and parent id should be used instead. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now