Jump to content

Amazon Prime Person Metadata/Image Helper (beta)


mickle026

Recommended Posts

mickle026

This is totally unofficial and may not be allowed in your country, so you are liable to check that yourselves - im not liable for anything should you choose to use this.

213623108_Screenshot2023-01-18at21-49-22Emby.png.ae44ffc4da6abaf99eaa6ec63223f387.png

 

 

Amazon Prime Person Helper (bing).zip

 

This is basically a web scraper, so you won't find it in Emby Official Catalogue.

Its an early test version, so there could possibly be bugs / incorrect data grabbed - however I've had no errors so far.
So let me know if you get any, provide the link from the logs and a description of what it did.

What it does:

Searches Bing for links of the person on Amazon Prime

If no links are found it will not even go to Amazons web site.

** It can identify a wrong person of the same name incorrectly**

40589790_Screenshot2023-01-18at21-54-44LeePhilipsMoviesTVandBio.png.b8e758b18209af3ebe3f594ea998b530.png

Then if found, it tries to grab the data and Image

18.Jan.2023  -  21.46.53 [GetMetadata] Searching for Person = Lee Philips
18.Jan.2023  -  21.46.53 Url = https://www.bing.com/search?q=Amazon+Prime+Video+Actor+lee+philips
18.Jan.2023  -  21.46.53 Found link = https://www.amazon.co.uk/prime-video/actor/Lee-Philips/nm0680097/
18.Jan.2023  -  21.46.53 Testing Link: https://www.amazon.co.uk/prime-video/actor/Lee-Philips/nm0680097/
18.Jan.2023  -  21.46.53 Checking for Imdb Id.
18.Jan.2023  -  21.46.53 Imdb Id found, temporarily holding Id: nm0680097
18.Jan.2023  -  21.46.53 Testing Link: https://www.amazon.co.uk/prime-video/actor/Lee-Philips/nm0680097/
18.Jan.2023  -  21.46.54 Imdb Id Added Successfully.
18.Jan.2023  -  21.46.54 Date Of Birth:  10 January 1927
18.Jan.2023  -  21.46.54 Birthplace Added: New York City, New York, USA
18.Jan.2023  -  21.46.54 Overview Added.
18.Jan.2023  -  21.47.05 [GetImage] Searching for Person Image for: Lee Philips
18.Jan.2023  -  21.47.05 Url = https://www.bing.com/search?q=Amazon+Prime+Video+Actor+lee+philips
18.Jan.2023  -  21.47.05 Found link = https://www.amazon.co.uk/prime-video/actor/Lee-Philips/nm0680097/
18.Jan.2023  -  21.47.05 Testing Link = https://www.amazon.co.uk/prime-video/actor/Lee-Philips/nm0680097/
18.Jan.2023  -  21.47.06 Page claims to contain a Person image
18.Jan.2023  -  21.47.06 [GetImages] SingleImage - Primary Image for "Lee Philips" was found: https://m.media-amazon.com/images/S/pv-target-images/48508d38d9f408b2f21ff289a177ab14b31aa5348b28d662378a9fea15e0ca46._SX300_.jpg

Then adds it to Emby

1640485102_Screenshot2023-01-18at21-56-35Emby.thumb.png.9786afa4e49c31a3c17518f98d05ed1c.png

How to trigger it -

Place the DLL in your plugins folder and restart Emby (It should work on all server versions)

Click on an Empty Image such as this....

781711991_Screenshot2023-01-18at21-57-34Emby.png.f73c70439993dcdacb4cb1310325fa20.png

 

Then it will do its thing......

 

If it doesn't find anyone it will log that too

18.Jan.2023  -  21.45.05 [GetMetadata] Searching for Person = Frederic March
18.Jan.2023  -  21.45.05 Url = https://www.bing.com/search?q=Amazon+Prime+Video+Actor+frederic+march
18.Jan.2023  -  21.45.05 Found link = https://www.amazon.co.uk/prime-video/actor/Frederic-March/nm0545298/
18.Jan.2023  -  21.45.05 Testing Link: https://www.amazon.co.uk/prime-video/actor/Frederic-March/nm0545298/
18.Jan.2023  -  21.45.05 Checking for Imdb Id.
18.Jan.2023  -  21.45.05 Imdb Id found, temporarily holding Id: nm0545298
18.Jan.2023  -  21.45.05 Testing Link: https://www.amazon.co.uk/prime-video/actor/Frederic-March/nm0545298/
18.Jan.2023  -  21.45.05 Verification failed - Disguarding link as probably wrong! = nm0545298
18.Jan.2023  -  21.45.05 Found link = https://www.amazon.co.uk/prime-video/actor/Fredric-March/nm0545298/
18.Jan.2023  -  21.45.05 Testing Link: https://www.amazon.co.uk/prime-video/actor/Fredric-March/nm0545298/
18.Jan.2023  -  21.45.05 Checking for Imdb Id.
18.Jan.2023  -  21.45.05 Imdb Id found, temporarily holding Id: nm0545298
18.Jan.2023  -  21.45.05 Testing Link: https://www.amazon.co.uk/prime-video/actor/Fredric-March/nm0545298/
18.Jan.2023  -  21.45.06 Verification failed - Disguarding link as probably wrong! = nm0545298
18.Jan.2023  -  21.45.06 Found link = https://www.amazon.co.uk/prime-video/actor/Frederic-Lumiere/amzn1.dv.gti.a1404d7c-5c76-42bf-9b79-b8c664db6bb3/
18.Jan.2023  -  21.45.06 Testing Link: https://www.amazon.co.uk/prime-video/actor/Frederic-Lumiere/amzn1.dv.gti.a1404d7c-5c76-42bf-9b79-b8c664db6bb3/
18.Jan.2023  -  21.45.06 Testing Link: https://www.amazon.co.uk/prime-video/actor/Frederic-Lumiere/amzn1.dv.gti.a1404d7c-5c76-42bf-9b79-b8c664db6bb3/
18.Jan.2023  -  21.45.06 Verification failed - Disguarding link as probably wrong! = 
18.Jan.2023  -  21.45.06 Found link = https://www.amazon.co.uk/prime-video/actor/Frederic-Robinson/nm1836253
18.Jan.2023  -  21.45.06 Testing Link: https://www.amazon.co.uk/prime-video/actor/Frederic-Robinson/nm1836253
18.Jan.2023  -  21.45.06 Checking for Imdb Id.
18.Jan.2023  -  21.45.06 Imdb Id found, temporarily holding Id: nm1836253
18.Jan.2023  -  21.45.06 Testing Link: https://www.amazon.co.uk/prime-video/actor/Frederic-Robinson/nm1836253
18.Jan.2023  -  21.45.06 Verification failed - Disguarding link as probably wrong! = nm1836253
18.Jan.2023  -  21.45.06 Nothing found for: Frederic March
18.Jan.2023  -  21.45.12 [GetImage] Searching for Person Image for: Frederic March
18.Jan.2023  -  21.45.12 Url = https://www.bing.com/search?q=Amazon+Prime+Video+Actor+frederic+march
18.Jan.2023  -  21.45.12 Found link = https://www.amazon.co.uk/prime-video/actor/Frederic-March/nm0545298/
18.Jan.2023  -  21.45.12 Testing Link = https://www.amazon.co.uk/prime-video/actor/Frederic-March/nm0545298/
18.Jan.2023  -  21.45.12 Found link = https://www.amazon.co.uk/prime-video/actor/Fredric-March/nm0545298/
18.Jan.2023  -  21.45.12 Testing Link = https://www.amazon.co.uk/prime-video/actor/Fredric-March/nm0545298/
18.Jan.2023  -  21.45.12 Found link = https://www.amazon.co.uk/prime-video/actor/Frederic-Lumiere/amzn1.dv.gti.a1404d7c-5c76-42bf-9b79-b8c664db6bb3/
18.Jan.2023  -  21.45.12 Testing Link = https://www.amazon.co.uk/prime-video/actor/Frederic-Lumiere/amzn1.dv.gti.a1404d7c-5c76-42bf-9b79-b8c664db6bb3/
18.Jan.2023  -  21.45.12 Found link = https://www.amazon.co.uk/prime-video/actor/Frederic-Robinson/nm1836253
18.Jan.2023  -  21.45.12 Testing Link = https://www.amazon.co.uk/prime-video/actor/Frederic-Robinson/nm1836253
18.Jan.2023  -  21.45.13 No Images found for: (Frederic March) in results!

 

Note - the reason for Frederic March failing is that when verifying his name - It is actually spelt wrong on Amazons Page (Fredric) so the plugin cannot guarantee that it is the same person.

 

 

Edited by mickle026
  • Like 1
  • Thanks 4
Link to comment
Share on other sites

LazyMonday91

Thanks for all this work on all this plugins for peoples metadata , it's just incredible man !!  😄

  • Like 1
Link to comment
Share on other sites

mickle026

Be careful with single name people, like wrestlers and such as adult actors with single names or aliases it can easily identify those wrong if they are like someone elses first or last name.  Emby by design just redownloads wrong info when you try to delete it.  You have to lock the metadata then save and reopen and then delete it and the image

I have my own metadata server for people with a whole lot more people - about 250,000 - I must have added hundreds manually, probably over a thousand.

I plan to release a plugin for that eventually.  (I already have one running it myself but it needs to have nothing to config, like these)

Edited by mickle026
  • Like 1
Link to comment
Share on other sites

GrimReaper
1 hour ago, mickle026 said:

Click on an Empty Image such as this....

781711991_Screenshot2023-01-18at21-57-34Emby.png.f73c70439993dcdacb4cb1310325fa20.png

 

Then it will do its thing......

Which one takes precedence, TMDB or Amazon? As clicking on empty image by default scrapes metadata from TMDB (if not already present and ID available)? 

Link to comment
Share on other sites

mickle026
6 minutes ago, GrimReaper said:

Which one takes precedence, TMDB or Amazon? As clicking on empty image by default scrapes metadata from TMDB (if not already present and ID available)? 

I don't know, because Person Fetchers are not able to be set precidence in th User Interface (UI)

@Luke would have to answer that, but you can see in the logs if it got data, and if you have data explorer from softworx installed you can look which one supplied the data.
If you hadn't had data from TMDB before then unless the Amazon on filled in the Imdb ID (which it also does if its available)and TMDB took over it would come from Amazon.

 

  • Thanks 1
Link to comment
Share on other sites

mickle026

Untitled-1.thumb.jpg.97e935d5f6b9330f150c632e81d2eef9.jpg

 

Like this one, the item data came from Amazon, the others did not have it

1396690302_Screenshot2023-01-19at00-12-10Emby.thumb.png.8dcff6d8a72bf5c3f5755dff491fd4b3.png

 

19.Jan.2023  -  00.09.46 [GetImage] Searching for Person Image for: Ashley Gorrell
19.Jan.2023  -  00.09.46 Url = https://www.bing.com/search?q=Amazon+Prime+Video+Actor+ashley+gorrell
19.Jan.2023  -  00.09.46 Found link = https://www.amazon.co.uk/prime-video/actor/Ashley-Gorrell/nm0331283
19.Jan.2023  -  00.09.46 Testing Link = https://www.amazon.co.uk/prime-video/actor/Ashley-Gorrell/nm0331283
19.Jan.2023  -  00.09.47 Page claims to contain a Person image
19.Jan.2023  -  00.09.47 [GetImages] SingleImage - Primary Image for "Ashley Gorrell" was found: https://m.media-amazon.com/images/S/pv-target-images/9bbd7bf2fcde8ea806f920bd0f6acce22ed5a346a7a7e1487c1abd6292abbb62._SX300_.jpg
19.Jan.2023  -  00.10.51 [GetMetadata] Searching for Person = Ashley Gorrell
19.Jan.2023  -  00.10.51 Url = https://www.bing.com/search?q=Amazon+Prime+Video+Actor+ashley+gorrell
19.Jan.2023  -  00.10.51 Found link = https://www.amazon.co.uk/prime-video/actor/Ashley-Gorrell/nm0331283
19.Jan.2023  -  00.10.51 Testing Link: https://www.amazon.co.uk/prime-video/actor/Ashley-Gorrell/nm0331283
19.Jan.2023  -  00.10.51 Checking for Imdb Id.
19.Jan.2023  -  00.10.51 Imdb Id found, temporarily holding Id: nm0331283
19.Jan.2023  -  00.10.51 Testing Link: https://www.amazon.co.uk/prime-video/actor/Ashley-Gorrell/nm0331283
19.Jan.2023  -  00.10.51 Imdb Id Added Successfully.
19.Jan.2023  -  00.10.51 Date Of Birth:  01 January 1985
19.Jan.2023  -  00.10.51 Birthplace Added: Sarasota, Florida, USA
19.Jan.2023  -  00.10.51 Overview Added.

It all did.

Edited by mickle026
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...