From 4282574941c372e1fd0b98c93d493ccbbcd428b4 Mon Sep 17 00:00:00 2001 From: Nathan Date: Mon, 15 Apr 2013 09:14:48 -0400 Subject: [PATCH] Fix for wrong data type of tmdb_id in watched movie data Handle data type inconsistency from trakt.tv api calls, type cast tmdb_id to unicode when iterating over watched movie data. --- sync.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sync.py b/sync.py index 4853291a..d4724ecf 100644 --- a/sync.py +++ b/sync.py @@ -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']