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

This commit is contained in:
Logan Rockmore 2020-02-17 05:21:07 -06:00 committed by GitHub
parent e45e7bb46f
commit c3a785b9b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

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({