2016-12-29, 23:26
(2016-12-29, 22:42)marcelveldt Wrote:(2016-12-29, 22:39)im85288 Wrote: Thanks for the response, I think it may only be an issue for users of Emby for Kodi (which Marcel was/is) so hopefully he can confirm/reject my above findings
You're using Kodi Krypton with Krypton, right ?
There's an issue with the IMDB number not correctly being scraped into the Kodi db...
Still needs to be fixed in the emby addon code.
Yeah I am and have been making some changes to the emby addon code...if you get a chance please have a look at the beta addon where I added the imdb number to the uniqueid table (movies only for now)
With those changes I can get back the top250 movies from the helper with these changes to your code:
Code:
all_movies = self.artutils.kodidb.get_json(
'VideoLibrary.GetMovies', fields=["imdbnumber","uniqueid"],
returntype="movies", filters=filters)
top_250 = self.artutils.imdb.get_top250_db()
for movie in all_movies:
movieimdbnumber = movie["uniqueid"]["imdb"]
if movieimdbnumber in top_250:
movie = self.artutils.kodidb.movie(movie["movieid"])
movie["top250_rank"] = int(top_250[movieimdbnumber])
all_items.append(movie)[code]
Not sure if that is the correct way though...basically the uniqueid now contains the imdb field