Skip to content

Commit

Permalink
Dashes should be replaced with spaces, not removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ex-nerd committed Jun 25, 2012
1 parent 2c19748 commit 08b8835
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions mythtv/programs/scripts/metadata/Movie/tmdb.py
Expand Up @@ -326,6 +326,7 @@ def __init__(self,
def movieSearch(self, title): def movieSearch(self, title):
'''Search for movies that match the title and output their "tmdb#:Title" to stdout '''Search for movies that match the title and output their "tmdb#:Title" to stdout
''' '''
title.replace("-"," ")
try: try:
data = self.config['moviedb'].searchTitle(title) data = self.config['moviedb'].searchTitle(title)
except TmdbMovieOrPersonNotFound, msg: except TmdbMovieOrPersonNotFound, msg:
Expand Down
4 changes: 2 additions & 2 deletions mythtv/programs/scripts/metadata/Movie/tmdb3.py
Expand Up @@ -72,9 +72,9 @@ def buildSingle(inetref):


def buildList(query): def buildList(query):
# TEMPORARY FIX: # 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 # as negative to all text that comes afterwards
query = query.replace('-','') query = query.replace('-',' ')
results = searchMovie(query) results = searchMovie(query)
tree = etree.XML(u'<metadata></metadata>') tree = etree.XML(u'<metadata></metadata>')
mapping = [['runtime', 'runtime'], ['title', 'originaltitle'], mapping = [['runtime', 'runtime'], ['title', 'originaltitle'],
Expand Down

0 comments on commit 08b8835

Please sign in to comment.