TMDB image rating broken

All your suggestions, requests and ideas for future development
Post Reply
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

TMDB image rating broken

Post by kim »

test:

Code: Select all

{def artwork = net.filebot.WebServices.TheMovieDB.getArtwork(19995, 'posters', Locale.US);
println "artwork: ${artwork.rating}";}
output:
artwork: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
pls fix/add rating

also if could add "vote_average", "vote_count" and maybe "aspect_ratio"
thx


Why ?
e.g. so I/we can choice higher/custom res. + rating over rating only.

btw:
as you can see here the Website/API(movie id) and API(images), do not show the same result (seen this many times, even if long time after uploads/API update), why because "Primary" = #1 on website (something only DEV/MODS can do) but NOT on API (API really needs a "Primary" key).
(This is a problem because it keeps people from voting image up/down...
yes, I know it's a TMDB problem, but they don't seem to want to do something about this...)

Website/API(movie id):
https://www.themoviedb.org/movie/19995- ... es/posters
https://api.themoviedb.org/3/movie/1999 ... uage=en-US
API(images):
https://api.themoviedb.org/3/movie/1999 ... key=APIKEY
poster_path "/kmcqlZGaSh20zpTbuoF0Cdn07dT.jpg"
0
aspect_ratio 0.6666666666666666
file_path "/tcqb9NHdw9SWs2a88KCDD4V8sVR.jpg"
height 1500
iso_639_1 "en"
vote_average 6.354
vote_count 250
width 1000
1
aspect_ratio 0.6666666666666666
file_path "/8Ic8rRVoVrDJJlXzVzGxAesufUV.jpg"
height 1500
iso_639_1 "en"
vote_average 6.342
vote_count 302
width 1000
2
aspect_ratio 0.6666666666666666
file_path "/b7nR3eKeTOwHPKmDLUWunIGasKo.jpg"
height 1500
iso_639_1 "en"
vote_average 5.648
vote_count 8
width 1000
3
aspect_ratio 0.6666666666666666
file_path "/vFOnUUCWGWpbCmGvCpCkPxB2KJd.jpg"
height 1500
iso_639_1 "de"
vote_average 5.454
vote_count 3
width 1000
4
aspect_ratio 0.6666666666666666
file_path "/kmcqlZGaSh20zpTbuoF0Cdn07dT.jpg"
height 1500
iso_639_1 "en"
vote_average 5.404
vote_count 20
width 1000
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TMDB image rating broken

Post by rednoah »

TheMovieDB artwork doesn't have a ratings for artwork, so you can't get ratings. That part probably didn't exist at the time, so it wasn't implemented. TheTVDB and FanartTV have ratings for artwork though.


EDIT:

Fixed. The vote_average field is now parsed into the Artwork object.
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: TMDB image rating broken

Post by kim »

ok so not "broken"... feature request then
"vote_average"
is the image "ratings" on TMDB API
along with "vote_count" (more votes = better score) and size (height and width... bigger = better score) if same score
Post Reply