Updated HTTP call in Gamma scraper.

This commit is contained in:
DebaucheryLibrarian 2020-11-22 04:09:44 +01:00
parent b9b777c621
commit 081a5a1e8c
1 changed files with 4 additions and 2 deletions

View File

@ -541,8 +541,10 @@ async function fetchScene(url, site, baseRelease) {
const [res, mobileRes] = await Promise.all([
http.get(deepUrl),
mobileUrl && http.get(mobileUrl, {
// don't redirect to main site
'user-agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Mobile Safari/537.36',
headers: {
// don't redirect to main site
'user-agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Mobile Safari/537.36',
},
}),
]);