fix: incomplete channel links for amazfitwatchfaces (#5354)
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user