Enabled mobile album fetching for Pure Taboo and Fantasy Massage.

This commit is contained in:
2020-03-06 19:44:20 +01:00
parent 1896cd1472
commit 5d468b58fd
3 changed files with 10 additions and 14 deletions

View File

@@ -468,18 +468,14 @@ async function fetchUpcoming(site) {
}
function getDeepUrl(url, site, release, mobile) {
const pathname = release?.path || new URL(url).pathname;
const pathname = release?.path || new URL(url).pathname.replace('/en/video', '');
if (mobile) {
return `${mobile}${pathname.replace('/en/video', '')}`;
}
if (site.parameters?.deep === 'network') {
return `${site.network.url}${pathname}`;
return `${mobile}${pathname}`;
}
if (site.parameters?.deep) {
return `${site.parameters.deep}${pathname.replace('/en/video', '')}`;
return `${site.parameters.deep}${pathname}`;
}
return url;