From 82d31d996d66e728c382a236555138dfab19e413 Mon Sep 17 00:00:00 2001 From: Ruud Date: Thu, 12 Sep 2013 22:29:59 +0200 Subject: [PATCH] Set order changes on each run. fix #2148 --- couchpotato/core/providers/info/themoviedb/main.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/couchpotato/core/providers/info/themoviedb/main.py b/couchpotato/core/providers/info/themoviedb/main.py index 387355f8..b9176153 100644 --- a/couchpotato/core/providers/info/themoviedb/main.py +++ b/couchpotato/core/providers/info/themoviedb/main.py @@ -1,6 +1,5 @@ from couchpotato.core.event import addEvent -from couchpotato.core.helpers.encoding import simplifyString, toUnicode, ss -from couchpotato.core.helpers.variable import md5 +from couchpotato.core.helpers.encoding import simplifyString, toUnicode from couchpotato.core.logger import CPLog from couchpotato.core.providers.info.base import MovieProvider import tmdb3 @@ -132,8 +131,6 @@ class TheMovieDb(MovieProvider): if alt_name and not alt_name in movie_data['titles'] and alt_name.lower() != 'none' and alt_name is not None: movie_data['titles'].append(alt_name) - movie_data['titles'] = list(set(movie_data['titles'])) - # Cache movie parsed self.setCache(cache_key, movie_data) @@ -143,7 +140,7 @@ class TheMovieDb(MovieProvider): image_url = '' try: - image_url = getattr(movie, type).geturl(size='original') + image_url = getattr(movie, type).geturl(size = 'original') except: log.debug('Failed getting %s.%s for "%s"', (type, size, movie.title))