Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Dashes should be replaced with spaces, not removed

  • Loading branch information...
commit 08b88353fa0fea0d77aa0668b742d8c937ab95f2 1 parent 2c19748
@ex-nerd ex-nerd authored
View
1  mythtv/programs/scripts/metadata/Movie/tmdb.py
@@ -326,6 +326,7 @@ def __init__(self,
def movieSearch(self, title):
'''Search for movies that match the title and output their "tmdb#:Title" to stdout
'''
+ title.replace("-"," ")
try:
data = self.config['moviedb'].searchTitle(title)
except TmdbMovieOrPersonNotFound, msg:
View
4 mythtv/programs/scripts/metadata/Movie/tmdb3.py
@@ -72,9 +72,9 @@ def buildSingle(inetref):
def buildList(query):
# TEMPORARY FIX:
- # remove all dashes from queries to work around search behavior
+ # replace all dashes from queries to work around search behavior
# as negative to all text that comes afterwards
- query = query.replace('-','')
+ query = query.replace('-',' ')
results = searchMovie(query)
tree = etree.XML(u'<metadata></metadata>')
mapping = [['runtime', 'runtime'], ['title', 'originaltitle'],
Please sign in to comment.
Something went wrong with that request. Please try again.