•   
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 8
  •   
Alpha plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners
#31
(2019-08-01, 17:08)Edworld Wrote:
(2019-08-01, 15:57)jurialmunkey Wrote:
(2019-08-01, 14:29)Edworld Wrote: I was referring to numerical ratings (9.0,9.4,etc). Media companion provides them for movies and tvshows.

They should already be there. TMDb ratings are put into ListItem.Rating

I've now also added support for OMDb so can get Awards, IMDb, RT and Metacritic for the ?info=item plugin path.
ListItem.Property(Rating.Metacritic)
ListItem.Property(Rating.RottenTomatoes)
ListItem.Property(Rating.IMDB)
ListItem.Property(Awards)

Can you add critics consensus and rottentomatoesaudience?

OMDb doesn't provide that info.
I'm not sure where listitem.helper gets it from - I will have to have a look at it and see.

This is what OMDb returns:
Code:

{
"Title": "Alien: Covenant",
"Year": "2017",
"Rated": "R",
"Released": "19 May 2017",
"Runtime": "122 min",
"Genre": "Horror, Sci-Fi, Thriller",
"Director": "Ridley Scott",
"Writer": "Dan O'Bannon (based on characters created by), Ronald Shusett (based on characters created by), Jack Paglen (story by), Michael Green (story by), John Logan (screenplay by), Dante Harper (screenplay by)",
"Actors": "Michael Fassbender, Katherine Waterston, Billy Crudup, Danny McBride",
"Plot": "The crew of a colony ship, bound for a remote planet, discover an uncharted paradise with a threat beyond their imagination, and must attempt a harrowing escape.",
"Language": "English",
"Country": "USA, UK",
"Awards": "1 win & 12 nominations.",
"Poster": "https://m.media-amazon.com/images/M/MV5BYzVkMjRhNzct[email protected]._V1_SX300.jpg",
"Ratings": [
{
"Source": "Internet Movie Database",
"Value": "6.4/10"
},
{
"Source": "Rotten Tomatoes",
"Value": "66%"
},
{
"Source": "Metacritic",
"Value": "65/100"
}
],
"Metascore": "65",
"imdbRating": "6.4",
"imdbVotes": "229,316",
"imdbID": "tt2316204",
"Type": "movie",
"DVD": "15 Aug 2017",
"BoxOffice": "$74,255,908",
"Production": "20th Century Fox",
"Website": "http://www.foxmovies.com/movies/alien-covenant",
"Response": "True"
}
Reply
#32
(2019-08-01, 23:02)jurialmunkey Wrote:
(2019-08-01, 17:08)Edworld Wrote:
(2019-08-01, 15:57)jurialmunkey Wrote: They should already be there. TMDb ratings are put into ListItem.Rating

I've now also added support for OMDb so can get Awards, IMDb, RT and Metacritic for the ?info=item plugin path.
ListItem.Property(Rating.Metacritic)
ListItem.Property(Rating.RottenTomatoes)
ListItem.Property(Rating.IMDB)
ListItem.Property(Awards)

Can you add critics consensus and rottentomatoesaudience? 

OMDb doesn't provide that info.
I'm not sure where listitem.helper gets it from - I will have to have a look at it and see.

This is what OMDb returns:
Code:

{
"Title": "Alien: Covenant",
"Year": "2017",
"Rated": "R",
"Released": "19 May 2017",
"Runtime": "122 min",
"Genre": "Horror, Sci-Fi, Thriller",
"Director": "Ridley Scott",
"Writer": "Dan O'Bannon (based on characters created by), Ronald Shusett (based on characters created by), Jack Paglen (story by), Michael Green (story by), John Logan (screenplay by), Dante Harper (screenplay by)",
"Actors": "Michael Fassbender, Katherine Waterston, Billy Crudup, Danny McBride",
"Plot": "The crew of a colony ship, bound for a remote planet, discover an uncharted paradise with a threat beyond their imagination, and must attempt a harrowing escape.",
"Language": "English",
"Country": "USA, UK",
"Awards": "1 win & 12 nominations.",
"Poster": "https://m.media-amazon.com/images/M/MV5BYzVkMjRhNzct[email protected]._V1_SX300.jpg",
"Ratings": [
{
"Source": "Internet Movie Database",
"Value": "6.4/10"
},
{
"Source": "Rotten Tomatoes",
"Value": "66%"
},
{
"Source": "Metacritic",
"Value": "65/100"
}
],
"Metascore": "65",
"imdbRating": "6.4",
"imdbVotes": "229,316",
"imdbID": "tt2316204",
"Type": "movie",
"DVD": "15 Aug 2017",
"BoxOffice": "$74,255,908",
"Production": "20th Century Fox",
"Website": "http://www.foxmovies.com/movies/alien-covenant",
"Response": "True"
}
 
You can take a look at media companion for critics consensus
Reply
#33
Hmm I just looked at ListItem Helper. It looks like there is an undocumented argument (&tomatoes=True) to get data from RT. However, it looks like it is no longer working:

Code:

"tomatoMeter": "N/A",
"tomatoImage": "N/A",
"tomatoRating": "N/A",
"tomatoReviews": "N/A",
"tomatoFresh": "N/A",
"tomatoRotten": "N/A",
"tomatoConsensus": "N/A",
"tomatoUserMeter": "N/A",
"tomatoUserRating": "N/A",
"tomatoUserReviews": "N/A",
"tomatoURL": "http://www.rottentomatoes.com/m/alien/",
"DVD": "06 Jan 2004",

EDIT: Dug a big deeper and found that it only returns the scores in xml (&r=xml) and not json for some reason. Will have to change my request approach slightly, but it shouldn't be too hard to get it from the xml instead.
Reply
#34
Hi!

I try to run the plugin from the videodialoginfo screen by this command "RunPlugin(plugin://plugin.video.themoviedb.helper/?info=search_movie&query=$INFO[ListItem.Title]&year=$INFO[ListItem.Year])" but the plugin comes up with a dialog telling me that I need a valid TheMovieDB API key. I have a valid key and have added this in the addon settings. 

Debug log

Cheers
Marucs
Reply
#35
(2019-08-02, 15:45)macardi Wrote: Hi!

I try to run the plugin from the videodialoginfo screen by this command "RunPlugin(plugin://plugin.video.themoviedb.helper/?info=search_movie&query=$INFO[ListItem.Title]&year=$INFO[ListItem.Year])" but the plugin comes up with a dialog telling me that I need a valid TheMovieDB API key. I have a valid key and have added this in the addon settings. 

Debug log

Cheers
Marucs
It doesn't work like that. You need to put the plugin path inside the content tags of a list control.
Reply
#36
@jurialmunkey really nice project! Much appreciated!  Nod
Really hope it's replacing ExtendedInfo soon cause it's really legacy!

I read i implemented almost all over api available ratings.
From my access, these only make sense with the matching votes.

In Media Companion i can scrape all these InfoLabels ratings+votes, so i think it would be less problem to get the same data. or?

ListItem.Ratings(metacritic)
ListItem.Votes(metacritic)
ListItem.Ratings(imdb)
ListItem.Votes(imdb)
ListItem.Ratings(themoviedb)
ListItem.Votes(themoviedb)
ListItem.Ratings(metacritic)
ListItem.Votes(metacritic)
ListItem.Ratings(tomatometerallcritics)
ListItem.Votes(tomatometerallcritics)
ListItem.Ratings(tomatometerallaudience)
ListItem.Votes(tomatometerallaudience)
ListItem.Ratings(anidb)
ListItem.Votes(anidb)


____
Love it to make ratings studies in kodi after watching a movie with my friends. It's the only platform i know where i can all combine in one view.
ImageImage
___
I know for some of the data a api key is required but for some skins this is provided anyway.
Would love you implement all available ratings and votes accessible over api.  Smile
Reply
#37
@jurialmunkey

Thank you so much for developing this. Will be the perfect addition to madnox.


A quick question, when browsing plugin node i see this
Image


Clicking on any item in the list, then a movie i get this
Image


There does not seem to be an onclick action, and the script asks me to enter my TMDb id.
Not sure if this is something from my end or not yet coded?
Reply
#38
(2019-08-03, 03:26)Mr. V Wrote: @jurialmunkey

Thank you so much for developing this. Will be the perfect addition to madnox.


A quick question, when browsing plugin node i see this
Image


Clicking on any item in the list, then a movie i get this
Image


There does not seem to be an onclick action, and the script asks me to enter my TMDb id.
Not sure if this is something from my end or not yet coded?


If you get that pop-up it means you are getting a 401 error from the API which means that the API KEY you've inputted is unauthorised to access the resource.
Are you sure you are entering a valid API KEY into the settings dialog? The API KEY is a different thing from a TMDb ID.
Info about how to get an API KEY is here:
https://developers.themoviedb.org/3/gett...troduction
Reply
#39
Really great thing. Smile Is there any option is planned to cache data? Smile
 Image
Reply
#40
(2019-08-03, 07:29)jurialmunkey Wrote:
(2019-08-03, 03:26)Mr. V Wrote: @jurialmunkey

Thank you so much for developing this. Will be the perfect addition to madnox.


A quick question, when browsing plugin node i see this
Image


Clicking on any item in the list, then a movie i get this
Image


There does not seem to be an onclick action, and the script asks me to enter my TMDb id.
Not sure if this is something from my end or not yet coded?


If you get that pop-up it means you are getting a 401 error from the API which means that the API KEY you've inputted is unauthorised to access the resource.
Are you sure you are entering a valid API KEY into the settings dialog? The API KEY is a different thing from a TMDb ID.
Info about how to get an API KEY is here:
https://developers.themoviedb.org/3/gett...troduction   


I am 100% sure the api key is correct.

The script is working when opening any of the movie nodes and showing me a list and artwork, it only shows the error when i click on a movie. TV shows work fine.

Debug log if it helps.
https://pastebin.com/ZvzqPaTK
Reply
#41
(2019-08-03, 18:03)Mr. V Wrote:
(2019-08-03, 07:29)jurialmunkey Wrote:
(2019-08-03, 03:26)Mr. V Wrote: @jurialmunkey

Thank you so much for developing this. Will be the perfect addition to madnox.


A quick question, when browsing plugin node i see this
Image


Clicking on any item in the list, then a movie i get this
Image


There does not seem to be an onclick action, and the script asks me to enter my TMDb id.
Not sure if this is something from my end or not yet coded?


If you get that pop-up it means you are getting a 401 error from the API which means that the API KEY you've inputted is unauthorised to access the resource.
Are you sure you are entering a valid API KEY into the settings dialog? The API KEY is a different thing from a TMDb ID.
Info about how to get an API KEY is here:
https://developers.themoviedb.org/3/gett...troduction   


I am 100% sure the api key is correct.

The script is working when opening any of the movie nodes and showing me a list and artwork, it only shows the error when i click on a movie. TV shows work fine.

Debug log if it helps.
https://pastebin.com/ZvzqPaTK

Hmm I'm not sure. I need to write in some error checking to get a better picture.
Also, I've just done a fairly big re-write of the code, so can you check with latest and see if this issue is still occurring?
Reply
#42
@chrissix

See latest version (note that some calls have changed - see readme on github).

plugin://plugin.video.themoviedb.helper/?info=details&type=movie&tmdb_id=348

ListItem.Labels:
Title, Plot, Genre, Studio, MPAA, Country, Year, Premiered, Rating, Duration

ListItem.Property(property):
tmdb_id
Genre.X.Name, Genre.X.ID, Studio.X.Name, Studio.X.ID, Country.X.Name, Country.X.ID
birthday, deathday, aliases, role, born
budget, revenue
awards
metacritic_rating
imdb_rating, imdb_votes
rottentomatoes_rating, rottentomatoes_image, rottentomatoes_consensus
rottentomatoes_reviewtotal, rottentomatoes_reviewsfresh, rottentomatoes_reviewsrotten
rottentomatoes_usermeter, rottentomatoes_userreviews
Reply
#43
A couple of things for your consideration:

https://letterboxd.com/api-beta/ ratings from new zealand

and adding critics consesnsus  (media companion scrapes this and adds it to nfo as outline I believe)

thanks
Reply
#44
(2019-08-04, 15:14)Edworld Wrote: A couple of things for your consideration:

https://letterboxd.com/api-beta/ ratings from new zealand

and adding critics consesnsus  (media companion scrapes this and adds it to nfo as outline I believe)

thanks

ListItem.Property(rottentomatoes_consensus)
On detailed item only.
Reply
#45
(2019-08-04, 15:32)jurialmunkey Wrote:
(2019-08-04, 15:14)Edworld Wrote: A couple of things for your consideration:

https://letterboxd.com/api-beta/ ratings from new zealand

and adding critics consesnsus  (media companion scrapes this and adds it to nfo as outline I believe)

thanks

ListItem.Property(rottentomatoes_consensus)
On detailed item only. 
Do you sleep?
Reply
  •   
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 8
  •   
 
Thread Rating:
  • 1 Vote(s) - 5 Average



Logout Mark Read Team Forum Stats Members Help
plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners51