fix(route): incorrect source links in yuzu emulator (#8111)

This commit is contained in:
Ethan Shen
2021-11-27 07:43:13 +00:00
committed by GitHub
parent d799646446
commit 4cf086dfbc
+1 -1
View File
@@ -30,7 +30,7 @@ module.exports = async (ctx) => {
method: 'get',
url: item.link,
});
const content = cheerio.load(detailResponse.data);
const content = cheerio.load(detailResponse.data.replace(/<source src="\.\//g, `<source src="${item.link}`));
const meta = content('.h3').text().trim().split(' on ');