[TV] Disable tvdb query simplifying (API doesn't support "fuzzy" matching)
This commit is contained in:
1 parent
88f8cd708b
commit
482f5f82e6
1 file changed
+5
-4
@@ -60,8 +60,9 @@ class TheTVDb(ShowProvider):
|
|||||||
self.tvdb_api_parms['language'] = language
|
self.tvdb_api_parms['language'] = language
|
||||||
self._setup()
|
self._setup()
|
||||||
|
|
||||||
search_string = simplifyString(q)
|
query = q
|
||||||
cache_key = 'thetvdb.cache.search.%s.%s' % (search_string, limit)
|
#query = simplifyString(query)
|
||||||
|
cache_key = 'thetvdb.cache.search.%s.%s' % (query, limit)
|
||||||
results = self.getCache(cache_key)
|
results = self.getCache(cache_key)
|
||||||
|
|
||||||
if not results:
|
if not results:
|
||||||
@@ -69,9 +70,9 @@ class TheTVDb(ShowProvider):
|
|||||||
|
|
||||||
raw = None
|
raw = None
|
||||||
try:
|
try:
|
||||||
raw = self.tvdb.search(search_string)
|
raw = self.tvdb.search(query)
|
||||||
except (tvdb_exceptions.tvdb_error, IOError), e:
|
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
|
return False
|
||||||
|
|
||||||
results = []
|
results = []
|
||||||
|
|||||||
Reference in new issue
Block a user