Skip to content

Commit f13fa2f

Browse files
committed
Change rating to be always BR0
1 parent 2ea94e0 commit f13fa2f

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

api/game/services/game.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,10 @@ async function getGameInfo(slug) {
2424
const body = await axios.get(`https://www.gog.com/game/${slug}`);
2525
const dom = new JSDOM(body.data);
2626

27-
const ratingElement = dom.window.document.querySelector(
28-
".age-restrictions__icon use"
29-
);
30-
3127
const description = dom.window.document.querySelector(".description");
3228

3329
return {
34-
rating: ratingElement
35-
? ratingElement
36-
.getAttribute("xlink:href")
37-
.replace(/_/g, "")
38-
.replace(/[^\w-]+/g, "")
39-
: "BR0",
30+
rating: "BR0",
4031
short_description: description.textContent.trim().slice(0, 160),
4132
description: description.innerHTML,
4233
};

0 commit comments

Comments
 (0)