mickle026 400 Posted May 12, 2020 Share Posted May 12, 2020 I can get the people ids for a movie, but I want to get the path to the image whether it be local or remote. Any ideas Gets the movie information var mediaitem = libraryManager.GetItemById(id); Gives me the list of People "ids" in a said movie var People = libraryManager.GetInternalItemIds(new InternalItemsQuery { AppearsInItemIds = new[] { mediaitem.InternalId } }); foreach (var Person in People) { logger.Info($"Person ID: {Person}", null); } Gives me a list of actors names, but no path to an image var xActors = libraryManager.GetItemPeople(mediaitem); foreach (var face in xActors) { logger.Info($"Person Name: { face.Name}", null); logger.Info($"Person ImageUrl: { face.ImageUrl}", null); } I would welcome some help with this I would also like to get the imdb, tmdb ids etc. I think i am probably pulling back the wrong info. I am *confused* as usual... Link to comment Share on other sites More sharing options...
rechigo 293 Posted May 12, 2020 Share Posted May 12, 2020 (edited) GetItemPeople(BaseItem) returns a PersonsInfo object which contains a ProviderIds property which is a dictionary containing ids such as imdb, tmdb, ETC You said there is no path to an image, so then what value is face.ImageUrl giving you? Edited May 12, 2020 by rechigo Link to comment Share on other sites More sharing options...
mickle026 400 Posted May 12, 2020 Author Share Posted May 12, 2020 (edited) GetItemPeople(BaseItem) returns a PersonsInfo object which contains a ProviderIds property which is a dictionary containing ids such as imdb, tmdb, ETC You said there is no path to an image, so then what value is face.ImageUrl giving you? Just an empty string, even when there is an imagethat i have manually uploaded. ah ... my routine already has providerids face.providerids ... just didnt see it *duh*- returns an array of ids - Thanks I still cannot find the path to the image though or the correct guid - face.guid just returns 00000000-0000-0000-0000-000000000000 So I have this var xActors = libraryManager.GetItemPeople(mediaitem); foreach (var face in xActors) { logger.Info($"Person Name: {face.Name}", null); logger.Info($"Person ImageUrl: {face.ImageUrl}", null); logger.Info($"Person imdb id: {face.ProviderIds}", null); logger.Info($"Person guid: {face.Guid}", null); } where mediaitem is the baseitem. xActors is the PersonsInfo object. face.ImageUrl is empty 2020-05-12 23:28:42.524 Info FetchImageInfoApi: Person Name: Ringo Lam 2020-05-12 23:28:42.524 Info FetchImageInfoApi: Person ImageUrl: 2020-05-12 23:28:42.524 Info FetchImageInfoApi: Person imdb,tmdb id: System.Collections.Generic.Dictionary`2[System.String,System.String] 2020-05-12 23:28:42.524 Info FetchImageInfoApi: Person guid: 00000000-0000-0000-0000-000000000000 As the Guid is blank too I cant even look in the \metadata\library folders Im lost here Edited May 12, 2020 by mickle026 Link to comment Share on other sites More sharing options...
mickle026 400 Posted May 12, 2020 Author Share Posted May 12, 2020 (edited) Im still not getting anywhere with this Ive tried logging everything in PersonInfo and it doesnt tell much 2020-05-13 00:41:07.800 Info FetchImageInfoApi: Movie internal ID: 5939 2020-05-13 00:41:07.800 Info FetchImageInfoApi: Movie name: 20 Centimeters 2020-05-13 00:41:07.800 Info FetchImageInfoApi: Original name: '20 CentÃmetros' 2020-05-13 00:41:07.800 Info FetchImageInfoApi: Production Year: 2005 2020-05-13 00:41:07.800 Info FetchImageInfoApi: GUID: 9a74840e-2f96-07af-deb2-af35d985de3e 2020-05-13 00:41:07.800 Info FetchImageInfoApi: GUID Path: (9a74840e-2f96-07af-deb2-af35d985de3e, \\192.168.1.103\movies\Twenty Centimeters (2005)\Twenty Centimeters (2005).mp4) 2020-05-13 00:41:07.801 Info FetchImageInfoApi: Person: 10566 2020-05-13 00:41:07.801 Info FetchImageInfoApi: Person: 10567 2020-05-13 00:41:07.801 Info FetchImageInfoApi: Person: 10568 2020-05-13 00:41:07.801 Info FetchImageInfoApi: Person: 10569 2020-05-13 00:41:07.801 Info FetchImageInfoApi: Person: 10570 2020-05-13 00:41:07.801 Info FetchImageInfoApi: Person: 10571 2020-05-13 00:41:07.801 Info FetchImageInfoApi: Person: 10572 2020-05-13 00:41:07.801 Info FetchImageInfoApi: ----------------------------- 2020-05-13 00:41:07.801 Info FetchImageInfoApi: Person Name: Mónica Cervera 2020-05-13 00:41:07.801 Info FetchImageInfoApi: Person ImageUrl: 2020-05-13 00:41:07.801 Info FetchImageInfoApi: Person Guid: 00000000-0000-0000-0000-000000000000 2020-05-13 00:41:07.801 Info FetchImageInfoApi: Person Id: 0 2020-05-13 00:41:07.801 Info FetchImageInfoApi: ImageInfos is Empty!! 2020-05-13 00:41:07.802 Info FetchImageInfoApi: Person ItemId: 5939 2020-05-13 00:41:07.802 Info FetchImageInfoApi: Person Role: Marieta 2020-05-13 00:41:07.802 Info FetchImageInfoApi: Person Type: Actor 2020-05-13 00:41:07.802 Info FetchImageInfoApi: ProviderIds is Empty!! 2020-05-13 00:41:07.802 Info FetchImageInfoApi: Person guid: 00000000-0000-0000-0000-000000000000 2020-05-13 00:41:07.802 Info FetchImageInfoApi: ----------------------------- 2020-05-13 00:41:07.802 Info FetchImageInfoApi: Person Name: Pablo Puyol 2020-05-13 00:41:07.802 Info FetchImageInfoApi: Person ImageUrl: 2020-05-13 00:41:07.802 Info FetchImageInfoApi: Person Guid: 00000000-0000-0000-0000-000000000000 2020-05-13 00:41:07.802 Info FetchImageInfoApi: Person Id: 0 2020-05-13 00:41:07.802 Info FetchImageInfoApi: ImageInfos is Empty!! 2020-05-13 00:41:07.802 Info FetchImageInfoApi: Person ItemId: 5939 2020-05-13 00:41:07.802 Info FetchImageInfoApi: Person Role: El reponedor 2020-05-13 00:41:07.802 Info FetchImageInfoApi: Person Type: Actor 2020-05-13 00:41:07.802 Info FetchImageInfoApi: ProviderIds is Empty!! 2020-05-13 00:41:07.802 Info FetchImageInfoApi: Person guid: 00000000-0000-0000-0000-000000000000 2020-05-13 00:41:07.802 Info FetchImageInfoApi: ----------------------------- 2020-05-13 00:41:07.802 Info FetchImageInfoApi: Person Name: Concha Galán 2020-05-13 00:41:07.802 Info FetchImageInfoApi: Person ImageUrl: 2020-05-13 00:41:07.802 Info FetchImageInfoApi: Person Guid: 00000000-0000-0000-0000-000000000000 2020-05-13 00:41:07.802 Info FetchImageInfoApi: Person Id: 0 2020-05-13 00:41:07.803 Info FetchImageInfoApi: ImageInfos is Empty!! 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person ItemId: 5939 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Role: Berta 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Type: Actor 2020-05-13 00:41:07.803 Info FetchImageInfoApi: ProviderIds is Empty!! 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person guid: 00000000-0000-0000-0000-000000000000 2020-05-13 00:41:07.803 Info FetchImageInfoApi: ----------------------------- 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Name: Miguel O'Dogherty 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person ImageUrl: 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Guid: 00000000-0000-0000-0000-000000000000 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Id: 0 2020-05-13 00:41:07.803 Info FetchImageInfoApi: ImageInfos is Empty!! 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person ItemId: 5939 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Role: Tomás 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Type: Actor 2020-05-13 00:41:07.803 Info FetchImageInfoApi: ProviderIds is Empty!! 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person guid: 00000000-0000-0000-0000-000000000000 2020-05-13 00:41:07.803 Info FetchImageInfoApi: ----------------------------- 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Name: Pilar Bardem 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person ImageUrl: 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Guid: 00000000-0000-0000-0000-000000000000 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Id: 0 2020-05-13 00:41:07.803 Info FetchImageInfoApi: ImageInfos is Empty!! 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person ItemId: 5939 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Role: La Candelaria 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Type: Actor 2020-05-13 00:41:07.803 Info FetchImageInfoApi: ProviderIds is Empty!! 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person guid: 00000000-0000-0000-0000-000000000000 2020-05-13 00:41:07.803 Info FetchImageInfoApi: ----------------------------- 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Name: Macarena Gómez 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person ImageUrl: 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Guid: 00000000-0000-0000-0000-000000000000 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Id: 0 2020-05-13 00:41:07.803 Info FetchImageInfoApi: ImageInfos is Empty!! 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person ItemId: 5939 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Role: Rebeca Menor 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Type: Actor 2020-05-13 00:41:07.803 Info FetchImageInfoApi: ProviderIds is Empty!! 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person guid: 00000000-0000-0000-0000-000000000000 2020-05-13 00:41:07.803 Info FetchImageInfoApi: ----------------------------- 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Name: Ramón Salazar 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person ImageUrl: 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Guid: 00000000-0000-0000-0000-000000000000 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Id: 0 2020-05-13 00:41:07.803 Info FetchImageInfoApi: ImageInfos is Empty!! 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person ItemId: 5939 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Role: 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person Type: Director 2020-05-13 00:41:07.803 Info FetchImageInfoApi: ProviderIds is Empty!! 2020-05-13 00:41:07.803 Info FetchImageInfoApi: Person guid: 00000000-0000-0000-0000-000000000000 Mónica Cervera Has IMDB "nm1014577" and the Primary image, yet emby gives me nothin I know what the guid is because I have Process monitor on My pc which logged where emby uploaded the file to \Emby-Server\programdata\metadata\library\82\82fb64b7772642fa8d86ad1e6e521cb7\folder.jpg The folder is the guid 82fb64b7772642fa8d86ad1e6e521cb7, but heck can i get it programatically ??? Edited May 13, 2020 by mickle026 Link to comment Share on other sites More sharing options...
mickle026 400 Posted May 13, 2020 Author Share Posted May 13, 2020 (edited) By Golly Ive got it You have to fetch the person by id to be able to get the information libraryManager.GetItemById(Person); 2020-05-13 01:23:12.665 Info FetchImageInfoApi: Movie internal ID: 5939 2020-05-13 01:23:12.665 Info FetchImageInfoApi: Movie name: 20 Centimeters 2020-05-13 01:23:12.665 Info FetchImageInfoApi: Original name: '20 CentÃmetros' 2020-05-13 01:23:12.665 Info FetchImageInfoApi: Production Year: 2005 2020-05-13 01:23:12.665 Info FetchImageInfoApi: GUID: 9a74840e-2f96-07af-deb2-af35d985de3e 2020-05-13 01:23:12.665 Info FetchImageInfoApi: GUID Path: (9a74840e-2f96-07af-deb2-af35d985de3e, \\192.168.1.103\movies\Twenty Centimeters (2005)\Twenty Centimeters (2005).mp4) 2020-05-13 01:23:12.666 Info FetchImageInfoApi: ----------------------------------------------------- 2020-05-13 01:23:12.666 Info FetchImageInfoApi: Person: 10566 2020-05-13 01:23:12.666 Info FetchImageInfoApi: Name : Ramón Salazar 2020-05-13 01:23:12.666 Info FetchImageInfoApi: Primary image Path : 2020-05-13 01:23:12.666 Info FetchImageInfoApi: ----------------------------------------------------- 2020-05-13 01:23:12.666 Info FetchImageInfoApi: Person: 10567 2020-05-13 01:23:12.667 Info FetchImageInfoApi: Name : Mónica Cervera 2020-05-13 01:23:12.667 Info FetchImageInfoApi: Primary image Path : ..............\AppData\Roaming\Emby-Server\programdata\metadata\library\82\82fb64b7772642fa8d86ad1e6e521cb7\folder.jpg 2020-05-13 01:23:12.667 Info FetchImageInfoApi: ImageInfos DateModified: 12/05/2020 23:56:49 +00:00 2020-05-13 01:23:12.667 Info FetchImageInfoApi: ImageInfos Height: 317 2020-05-13 01:23:12.667 Info FetchImageInfoApi: ImageInfos IsLocalFile: True 2020-05-13 01:23:12.667 Info FetchImageInfoApi: ImageInfos Orientation: TopLeft 2020-05-13 01:23:12.667 Info FetchImageInfoApi: ImageInfos Type: Primary 2020-05-13 01:23:12.667 Info FetchImageInfoApi: ImageInfos Width: 214 2020-05-13 01:23:12.667 Info FetchImageInfoApi: ----------------------------------------------------- 2020-05-13 01:23:12.667 Info FetchImageInfoApi: Person: 10568 2020-05-13 01:23:12.667 Info FetchImageInfoApi: Name : Pablo Puyol 2020-05-13 01:23:12.667 Info FetchImageInfoApi: Primary image Path : 2020-05-13 01:23:12.667 Info FetchImageInfoApi: ----------------------------------------------------- 2020-05-13 01:23:12.667 Info FetchImageInfoApi: Person: 10569 2020-05-13 01:23:12.670 Info FetchImageInfoApi: Name : Concha Galán 2020-05-13 01:23:12.670 Info FetchImageInfoApi: Primary image Path : 2020-05-13 01:23:12.670 Info FetchImageInfoApi: ----------------------------------------------------- 2020-05-13 01:23:12.670 Info FetchImageInfoApi: Person: 10570 2020-05-13 01:23:12.671 Info FetchImageInfoApi: Name : Miguel O'Dogherty 2020-05-13 01:23:12.671 Info FetchImageInfoApi: Primary image Path : 2020-05-13 01:23:12.671 Info FetchImageInfoApi: ----------------------------------------------------- 2020-05-13 01:23:12.671 Info FetchImageInfoApi: Person: 10571 2020-05-13 01:23:12.671 Info FetchImageInfoApi: Name : Pilar Bardem 2020-05-13 01:23:12.671 Info FetchImageInfoApi: Primary image Path : 2020-05-13 01:23:12.671 Info FetchImageInfoApi: ----------------------------------------------------- 2020-05-13 01:23:12.671 Info FetchImageInfoApi: Person: 10572 2020-05-13 01:23:12.671 Info FetchImageInfoApi: Name : Macarena Gómez 2020-05-13 01:23:12.671 Info FetchImageInfoApi: Primary image Path : Edited May 13, 2020 by mickle026 Link to comment Share on other sites More sharing options...
mickle026 400 Posted May 14, 2020 Author Share Posted May 14, 2020 I also have 0 - 23byte \folder jpg files in people that are actually html files , open them in a hex editor and you see "<h1>File not Found</h1>" I want to remove these as they are just blank in emby and have to be done manually as you come across them.. I think they are tmdb or omdb errors. 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