fix: incomplete channel links for amazfitwatchfaces (#5354)

This commit is contained in:
Ethan Shen
2020-08-05 23:23:53 +01:00
committed by GitHub
parent 89607875ff
commit 0493e87dc2
+3 -1
View File
@@ -4,9 +4,11 @@ const cheerio = require('cheerio');
module.exports = async (ctx, currentUrl) => {
const rootUrl = `https://amazfitwatchfaces.com/`;
currentUrl = `${rootUrl}${currentUrl}`;
const response = await got({
method: 'get',
url: `${rootUrl}${currentUrl}`,
url: currentUrl,
});
const $ = cheerio.load(response.data);
const list = $('#wf-row div.col-md-3')