Skip to content

Commit

Permalink
Fix for wrong data type of tmdb_id in watched movie data
Browse files Browse the repository at this point in the history
Handle data type inconsistency from trakt.tv api calls, type cast tmdb_id to unicode when iterating over watched movie data.
  • Loading branch information
nate1280 committed Apr 15, 2013
1 parent 01281a5 commit 4282574
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sync.py
Expand Up @@ -441,6 +441,7 @@ def traktLoadMovies(self):
if movie['tmdb_id'] is None:
movie['tmdb_id'] = ""
for movie in watched_movies:
movie['tmdb_id'] = unicode(movie['tmdb_id'])
m = self.findMovie(movie, movies)
if m:
m['plays'] = movie['plays']
Expand Down

0 comments on commit 4282574

Please sign in to comment.