This commit is contained in:
Daniel Odendahl Jr
2018-10-04 21:21:01 +00:00
parent e7416e8816
commit 303b4481b3
+1 -1
View File
@@ -52,7 +52,7 @@ module.exports = class VNDBCommand extends Command {
async fetchVN(id) {
const { text } = await request.get(`https://vndb.org/v${id}`);
const devID = text.match(/<a href="\/p([0-9]+)"/);
const devID = text.match(/<a href="\/p([0-9]+)"/)[1];
const developer = await this.fetchDeveloper(devID);
const description = text.match(/<h2>Description<\/h2><p>(.+)<\/p><\/td>/)[1]
.replace(/<br>/g, '\n')