fix: the Vulture feeds so that they properly fetch the URLs. (#4015)
This commit is contained in:
parent
e45e7bb46f
commit
c3a785b9b5
|
|
@ -62,7 +62,11 @@ const getData = async (ctx, url, title) => {
|
|||
const htmlData = htmlResponse.data;
|
||||
|
||||
const $ = cheerio.load(htmlData);
|
||||
const dataUri = $('section.paginated-feed').attr('data-uri');
|
||||
let dataUri = $('section.paginated-feed').attr('data-uri');
|
||||
|
||||
if (dataUri.startsWith('www.')) {
|
||||
dataUri = 'https://' + dataUri;
|
||||
}
|
||||
|
||||
// get the raw data
|
||||
const response = await got({
|
||||
|
|
|
|||
Loading…
Reference in New Issue