Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
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)
Ejemplo n.º 3
0
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)
Ejemplo n.º 4
0
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
Ejemplo n.º 5
0
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)
Ejemplo n.º 6
0
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)
Ejemplo n.º 7
0
def search_movie(info):
    query = common.translator(info['imdb_id'], 'es', False)  # Just title
    query += ' #MOVIE&FILTER'  #to use movie filters
    return search(query)
Ejemplo n.º 8
0
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)
Ejemplo n.º 9
0
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):
    info["type"] = "movie"
    query = common.translator(info['imdb_id'], 'it', False)  # Just title
    info["query"] = query
    return search_general(info)
Ejemplo n.º 11
0
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)
Ejemplo n.º 12
0
def search_movie(info):
    query = common.translator(info['imdb_id'], 'es', False)
    return search(query)
Ejemplo n.º 13
0
def search_movie(info):
    query = common.translator(info["imdb_id"], "es", False)
    return search(query)
Ejemplo n.º 14
0
def search_movie(info):
    query = common.translator(info['imdb_id'], 'es', False)
    return search(query)