From 482f5f82e64688f7667451248df36718e934d341 Mon Sep 17 00:00:00 2001 From: Dean Gardiner Date: Mon, 28 Jul 2014 16:12:31 +1200 Subject: [PATCH] [TV] Disable tvdb query simplifying (API doesn't support "fuzzy" matching) --- couchpotato/core/media/show/providers/info/thetvdb.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/couchpotato/core/media/show/providers/info/thetvdb.py b/couchpotato/core/media/show/providers/info/thetvdb.py index e57057c..7cbe3f4 100755 --- a/couchpotato/core/media/show/providers/info/thetvdb.py +++ b/couchpotato/core/media/show/providers/info/thetvdb.py @@ -60,8 +60,9 @@ class TheTVDb(ShowProvider): self.tvdb_api_parms['language'] = language self._setup() - search_string = simplifyString(q) - cache_key = 'thetvdb.cache.search.%s.%s' % (search_string, limit) + query = q + #query = simplifyString(query) + cache_key = 'thetvdb.cache.search.%s.%s' % (query, limit) results = self.getCache(cache_key) if not results: @@ -69,9 +70,9 @@ class TheTVDb(ShowProvider): raw = None try: - raw = self.tvdb.search(search_string) + raw = self.tvdb.search(query) except (tvdb_exceptions.tvdb_error, IOError), e: - log.error('Failed searching TheTVDB for "%s": %s', (search_string, traceback.format_exc())) + log.error('Failed searching TheTVDB for "%s": %s', (query, traceback.format_exc())) return False results = []