Kodi Community Forum

Full Version: Fetch IMDB rating using TMDB scraper?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,

I am new to TMM and in the process of creating local NFOs with Fanart for my entire movie collection. I have named all of my folders for movies according to the TMDB website and as such use the TMDB scraper in TMM. The first couple of test runs for some movies worked great, however, generally I prefer the IMDB Rating for a movie instead of the TMDB rating.

When I use the TMDB scraper, consequently the TMDB rating is fetched, like here e.g. for Underwater:

Image

But is there a way to retrieve the IMDB Rating for a movie instead of the TMDB rating during the sraping process?
(2020-05-23, 22:48)spinmaster Wrote: [ -> ]Hi,

I am new to TMM and in the process of creating local NFOs with Fanart for my entire movie collection. I have named all of my folders for movies according to the TMDB website and as such use the TMDB scraper in TMM. The first couple of test runs for some movies worked great, however, generally I prefer the IMDB Rating for a movie instead of the TMDB rating.

When I use the TMDB scraper, consequently the TMDB rating is fetched, like here e.g. for Underwater:

Image

But is there a way to retrieve the IMDB Rating for a movie instead of the TMDB rating during the sraping process?

I don't think so - I've been looking for this as well. Would be nice with IMDB ratings for TMDB scraping Smile
You could try our "universal scraper".
And configure, where to get what from which scraper Wink

Alternatively, rescrape ratings only with IMDB afterwards...
(2020-05-25, 12:01)myron Wrote: [ -> ]You could try our "universal scraper".
And configure, where to get what from which scraper Wink

Alternatively, rescrape ratings only with IMDB afterwards...

Thanks, just what I needed!
(2020-05-25, 12:01)myron Wrote: [ -> ]You could try our "universal scraper".
And configure, where to get what from which scraper Wink

Alternatively, rescrape ratings only with IMDB afterwards...
Thanks @myron ! Perfect ... Must say I didn't have the universal scraper on my radar and I wasn't aware that there is something designed for that usecase. Made a quick test and it seems to work just fine for what I needed. My workaround last night was what you mentioned ... scraping twice: first scrape with TMDB scraper fetching everything except rating-field and then a second/additional scrape with IMDB scraper to essentially "combine" both scrapes. Of course, a single scrape with the universal is much better.

This is is how I use it now:
Image

It seems TMDB and IMDB rating values are both written to the NFO in that regard:
xml:

 <ratings>
    <rating default="false" max="10" name="themoviedb">
      <value>6.4</value>
      <votes>1160</votes>
    </rating>
    <rating default="true" max="10" name="imdb">
      <value>5.8</value>
      <votes>39567</votes>
    </rating>
  </ratings>

But since IMDB is marked as default, the end result is what I was looking for in the NFO file. Smile
Update:

While the Universal Scraper approach works great for Movies, is there a similar way to do the same for TV-Shows when using the TVDB Scraper?

I want to scrape my TV-Shows with TVDB - but I still prefer (similar for Movies) the IMDB Rating. Is there a "one way" scrape workaround for that too? So far I have been scraping everything with TVDB and then do a second, additional scrape with the IMDB-Scraper for "Ratings" only. This seems to work - I can see the correct Ratings in the UI afterwards, but when I try to rewrite the NFOs afterwards, I am getting the following error:

Image

By the way: what is the reason that "IMDB" is missing for preferred Ratings in the TV-Shows Scraper options?

Image

This would essentially solve my issue I think Wink
If you are adding these to Kodi after creating the TMM nfo files, you could use this addon for IMDB ratings... https://forum.kodi.tv/showthread.php?tid=316342
Thanks @Karellen , I would like to have "clean" NFOs in the first place and not alter them with any additional addons after importing into Kodi ... I wonder why the "double scrape" solution does not work. The initial NFOs with the TVDB Scraper are written perfectly fine, but when I do the second scrape with IMDB just for Ratings, I am getting the "Could not write NFOs for Episode X" in the Error Log, after trying to rewrite the NFOs. Again, the IMDB Ratings are visible in the UI after the second scrape, but somehow this is not updated in the filesystem. I will do some more testing I guess ...

Update: After a few more tries, it worked with the "double scrape" workaround. Not sure why this error was thrown, but now the IMDB rating is written to the NFO.

Still wondering why the IMDB option for "Preferred Ratings" in the TV-Shows Settings is missing though. Huh
Would it be possible to add an option to scrape all ratings on one click?

movies:
tmdb
imdb
rotten critic
rotten audience
metacritic
traktv

tvshows:
tmdb
imdb
tvdb
traktv
Would also love a IMDB option for the preferred ratings, but according to the developer it's a lot of programming, now i'm doing a second scrape with only rating selected. 
If only there would be an inverse option it would save me some time clicking all the scrape options off with the second scrape (first scan of TV series is without rating selected).
fetching multiple ratings for Tv shows is probably not that easy as for movies: for TV shows you have several different orderings (DVD vs. aired vs. ...?) which may or may not be identical across several different metadata sources.
I've done a comparison for Futurama where I know that there are differences:

TMDB: (aired) https://www.themoviedb.org/tv/615-futura...3ef9014da1 OR (dvd) https://www.themoviedb.org/tv/615-futura...73700142de OR (digital) https://www.themoviedb.org/tv/615-futura...uage=en-US

vs IMDB: https://www.imdb.com/title/tt0149460/epi...t_eps_sn_5

vs TVDB: (aired) https://thetvdb.com/series/futurama/seasons/official/5 OR (dvd) https://thetvdb.com/series/futurama/seasons/dvd/5

vs Trakt.tv: https://trakt.tv/shows/futurama/seasons/5

as you see we get different results everywhere which makes a match impossible - and without a match (of at least the season/episode number) we cannot take information a from scraper a and information b from scraper b). So taking episode ratings from IMDB whereas using the rest from TVDB is risky because it could be that the episode X from season Y if completely different between TVDB/IMDB.
(2020-06-09, 12:45)mlaggner Wrote: [ -> ]fetching multiple ratings for Tv shows is probably not that easy as for movies: for TV shows you have several different orderings (DVD vs. aired vs. ...?) which may or may not be identical across several different metadata sources. (...)
Understood ... thanks for the explanation. Will stick with the default TVDB rating then for TV-Shows ... I would say the (IMDB-) rating is more useful for movies anyway, but it would have been nice to have it for TV Episodes too. I see the cross-match challenges you mentioned.
(2020-06-09, 17:40)spinmaster Wrote: [ -> ]Will stick with the default TVDB rating then for TV-Shows
I wouldn't. TVDB no longer provide a facility to rate tv shows, so all new shows do not have ratings and votes. Older shows still have the ratings, but as users can no longer add their own rating, that data now becomes stagnant.

https://forums.thetvdb.com/viewtopic.php...18#p179218

@mlaggner
The approach used by the developer of the Light IMDB addon is to use the IMDB ID to allocate the correct rating. As long as TVDB and TheMovieDB have the IMDB ID attached for the episode and tv show, it does not matter how the episode is numbered, the IMDB ID points to the correct IMDB rating. Probably needs a rethink in light of TVDB no longer providing ratings.
@Karellen thanks for the hint - something in this direction was already in my mind, but you just confirmed that this should work Wink will have to have a look for this soon
(2020-06-09, 22:11)Karellen Wrote: [ -> ]
(2020-06-09, 17:40)spinmaster Wrote: [ -> ]Will stick with the default TVDB rating then for TV-Shows
I wouldn't. TVDB no longer provide a facility to rate tv shows, so all new shows do not have ratings and votes. Older shows still have the ratings, but as users can no longer add their own rating, that data now becomes stagnant.

https://forums.thetvdb.com/viewtopic.php...18#p179218
Funny that you mention this, as I was just about to post, that I noticed that for some of my shows in my collection, there are no ratings returned from TVDB, for example "The Witcher", "The Dark Crystal" and others. I wasn't sure if this was expected, as you cannot see the ratings on their website without an account (and I don't have an API Key to check myself directly). But now it makes sense with what you posted.

OK, so let's say I don't scrape any ratings with the TVDB scraper in TMM for TV-Shows: when I use the "Light IMDB Ratings" Addon you mentioned, are the NFOs in my filesystem updated by the Addon just with the Ratings-Tag inside the XML? Or are the NFOs not touched by the Addon and the IMDB rating is fetched "on the fly" and just visibible in the Kodi UI?

@mlaggner : If it's the latter, then it would be indeed great if you can provide IMDB ratings for TV-Shows in a future release. Many thanks for your great work!
Pages: 1 2