Skip to content

Commit

Permalink
add isupdatingratings property
Browse files Browse the repository at this point in the history
  • Loading branch information
jurialmunkey committed Jun 19, 2022
1 parent 1ba08f2 commit 1c906b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="plugin.video.themoviedb.helper"
version="4.8.15"
version="4.8.16"
name="TheMovieDb Helper"
provider-name="jurialmunkey">
<requires>
Expand Down
4 changes: 3 additions & 1 deletion resources/lib/monitor/listitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,14 @@ def process_ratings(self, details, tmdb_type):
trakt_type = {'movie': 'movie', 'tv': 'show'}[tmdb_type]
except KeyError:
return # Only lookup ratings for movie or tvshow
get_property('IsUpdatingRatings', 'True')
details = self.get_omdb_ratings(details)
details = self.get_imdb_top250_rank(details, trakt_type=trakt_type)
details = self.get_trakt_ratings(details, trakt_type, season=self.season, episode=self.episode)
if not self.is_same_item():
return
return get_property('IsUpdatingRatings', clear_property=True)
self.set_iter_properties(details.get('infoproperties', {}), SETPROP_RATINGS)
get_property('IsUpdatingRatings', clear_property=True)

@kodi_try_except('lib.monitor.listitem.clear_on_scroll')
def clear_on_scroll(self):
Expand Down

0 comments on commit 1c906b7

Please sign in to comment.