28 lines
703 B
JavaScript
28 lines
703 B
JavaScript
'use strict';
|
|
|
|
const { fetchScene, fetchLatest, fetchUpcoming, fetchProfile } = require('./gamma');
|
|
|
|
async function fetchSceneWrapper(url, site, baseRelease, options) {
|
|
const release = await fetchScene(url, site, baseRelease, options);
|
|
|
|
if (site.isNetwork && release.channel) {
|
|
const channelUrl = url.replace('blowpass.com', `${release.channel}.com`);
|
|
|
|
if (['onlyteenblowjobs', 'mommyblowsbest'].includes(release.channel)) {
|
|
release.url = channelUrl.replace(/video\/\w+\//, 'scene/');
|
|
return release;
|
|
}
|
|
|
|
release.url = channelUrl.replace(/video\/\w+\//, 'video/');
|
|
}
|
|
|
|
return release;
|
|
}
|
|
|
|
module.exports = {
|
|
fetchLatest,
|
|
fetchProfile,
|
|
fetchUpcoming,
|
|
fetchScene: fetchSceneWrapper,
|
|
};
|