コード例 #1
0
ファイル: nvhttpscraper.py プロジェクト: wackerl91/luna
    def get_game_information(self, nvapp):
        game_cover_path = self._set_up_path(os.path.join(self.cover_cache, nvapp.id))
        response = ApiResponse()
        response.name = nvapp.title
        raw_box_art = self.nvhttp.get_box_art(nvapp.id)
        cover_path = self._dump_image_from_data(game_cover_path, nvapp.id, raw_box_art)
        response.posters.append(cover_path)

        return response
コード例 #2
0
    def get_game_information(self, nvapp):
        game_cover_path = self._set_up_path(
            os.path.join(self.cover_cache, nvapp.id))
        response = ApiResponse()
        response.name = nvapp.title
        raw_box_art = self.nvhttp.get_box_art(nvapp.id)
        cover_path = self._dump_image_from_data(game_cover_path, nvapp.id,
                                                raw_box_art)
        response.posters.append(cover_path)

        return response