-
Notifications
You must be signed in to change notification settings - Fork 1
/
override.js
31 lines (27 loc) · 1.28 KB
/
override.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(function() {
const fs = require("fs")
let data = JSON.parse(fs.readFileSync("./result.json"))
/**
* @param id the id of the review of the album that needs something changed
* @param key what needs to be changed
* @param value what it needs to be changed to
*/
function set(id, key, value) { if(data[id] && data[id][key]) data[id][key] = value; }
// this is for manually correcting things that are wack
// this sets the score for polygondwanaland (by king gizzard) to 7/10 because a link screwed it up and i spent like 3 hours trying to fix it and failed
set("JX54Kz7DaZQ", "rating", "7/10")
/* the keys that you'd probably need are-
artist
album
rating (score/10)
of course there are a bunch of other ones, some of which i dont use but they're still there. check fetch.js for em all
*/
set("D86O_TGb45Q", "rating", "what/10")
set("CJDcbwpsjU0", "rating", "0.94721/10")
set("8PqLOyHA7BI", "rating", "8/10")
set("1_d3YFEGeCQ", "rating", "8/10")
set("vN6MuBfbt_E", "album", "The Tortured Poets Department ANTHOLOGY") // ttpd review title is wacky
set("vN6MuBfbt_E", "artist", "Taylor Swift")
set("vN6MuBfbt_E", "rating", "4")
fs.writeFileSync("./result.json", JSON.stringify(data))
})();