I've come across several unique key failures when calling the People/Get Images API due to content duplication.
For example int he following call
https://api.themoviedb.org/3/person/60073/image
we receive the same "file_path": "/r8ZzoEYaoj7BCgDHRE1WDMYMvFW.jpg" several times.
This problem occurs across other People.
What is the best way to solve it? Shall I report it every instance? Can you fix your system to prevent to assign duplication across some key fields such as Ids, file_path and so on...
For that specific API, you don't have an Id field available meaning that we are forced to use file_path as unique identifier only that some times it is not unique due to duplication.
Thanks
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by ticao2 š§š· pt-BR
on May 19, 2020 at 8:12 PM
I made the API request for this ID you entered, 60073.
https://api.themoviedb.org/3/person/60073/images?api_key=THE_KEY
I didn't find any repetition of this path that you reported.
"file_path": "/r8ZzoEYaoj7BCgDHRE1WDMYMvFW.jpg"
I found it only once in the answer. #31
And another 34 different paths.
Can you post here some examples of API Request with this problem?
I didn't understand what you're saying.
I believe that due to translation problems of Google Translate.
Reply by Travis Bell
on May 19, 2020 at 9:29 PM
Hey @butri71, I did see the duplicate image on Brie Larson's page. Hard to say why the duplicates got added the way they did but in any case I removed the one here. The best thing to do as you find more is to use the "Report" link on the items page, and then a moderator can remove the duplicate image.
Reply by butri71
on May 20, 2020 at 6:11 PM
Thanks @travisbell I'll keep reporting it the way you instructed in the future.
Cheers