fix: the Vulture feeds so that they properly fetch the URLs. (#4015)

This commit is contained in:
Logan Rockmore
2020-02-17 19:21:07 +08:00
committed by GitHub
parent e45e7bb46f
commit c3a785b9b5
+5 -1
View File
@@ -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({