def search_movie(info): if settings.language == 'en': # Title in english query = info['title'].encode('utf-8') # convert from unicode if len(info['title']) == len(query): # it is a english title query += ' ' + str(info['year']) # Title + year else: query = common.IMDB_title(info['imdb_id']) # Title + year else: # Title en foreign language query = common.translator(info['imdb_id'],settings.language).title().decode('utf-8') + ' ' + str(info['year']) # Just title return search(query)
def search_movie(info): if settings.language == "en": # Title in english query = info["title"].encode("utf-8") # convert from unicode if len(info["title"]) == len(query): # it is a english title query += " " + str(info["year"]) # Title + year else: query = common.IMDB_title(info["imdb_id"]) # Title + year else: # Title en foreign language query = common.translator(info["imdb_id"], settings.language) # Just title query += " #MOVIE&FILTER" # to use movie filters return search(query)
def search_movie(info): if settings.language == 'en': # Title in english query = info['title'].encode('utf-8') # convert from unicode if len(info['title']) == len(query): # it is a english title query += ' ' + str(info['year']) # Title + year else: query = common.IMDB_title(info['imdb_id']) # Title + year else: # Title en foreign language query = common.translator(info['imdb_id'],settings.language) # Just title query += ' #MOVIE&FILTER' #to use movie filters return search(query)
def search_episode(info): trans_title = filters.remove_characters( common.translator(info['imdb_id'], "es")) trans_info = copy.deepcopy(info) trans_info['title'] = trans_title results = search_episode_routine(info) if len(results) == 0: results = search_episode_routine(trans_info) return results
def search_movie(info): info["type"] = "movie" if settings.value.get("language", "en") == 'en': # Title in english query = info['title'].encode('utf-8') # convert from unicode if len(info['title']) == len(query): # it is a english title query += ' ' + str(info['year']) # Title + year else: query = common.IMDB_title(info['imdb_id']) # Title + year else: # Title en foreign language query = common.translator(info['imdb_id'], settings.value["language"]) # Just title info["query"] = query return search_general(info)
def search_movie(info): query = common.translator(info['imdb_id'], 'es', False) # Just title query += ' #MOVIE&FILTER' #to use movie filters return search(query)
def search_movie(info): filters.use_movie() query = common.translator(info['imdb_id'], 'es') #define query in spanish provider.log.error('Query extracted using IMDB: %s' % query) return search(query)
def search_movie(info): info["type"] = "movie" query = common.translator(info['imdb_id'], 'it', False) # Just title info["query"] = query return search_general(info)
def search_movie(info): info["type"] = "movie" query = common.translator(info['imdb_id'], 'fr', False) # Just title info["query"] = query + ' ' + str(info['year']) return search_general(info)
def search_movie(info): query = common.translator(info['imdb_id'], 'es', False) return search(query)
def search_movie(info): query = common.translator(info["imdb_id"], "es", False) return search(query)