Пример #1
0
def match_to_gametrailers(title, system):
    title_norm = normalize_game_title(title)
    system_norm = normalize_system(system)
    results = GT.search(title)
    for result in results:
        if normalize_system(result.system) == system_norm:
            if normalize_game_title(result.title) == title_norm:
                return result.id
    return None
Пример #2
0
 def get_info(self, game_id, info_id):
     return GT.get_info(info_id, MyGame.get(game_id).system)           
Пример #3
0
 def search(self, query, *args, **kwargs):
     return GT.search(query)