Gamma won't attempt to fetch photos when 'photos' parameter is false.

This commit is contained in:
ThePendulum 2020-03-06 23:50:52 +01:00
parent 9d9c741ce9
commit 6820608a09
2 changed files with 2 additions and 1 deletions

View File

@ -2467,6 +2467,7 @@ const sites = [
useGamma: true,
scene: false,
deep: 'https://21sextury.com/en/video',
photos: false,
},
},
// JULES JORDAN

View File

@ -18,7 +18,7 @@ function getAlbumUrl(albumPath, site) {
: `${site.url}${site.parameters.photos}/${albumPath.split('/').slice(-2).join('/')}`;
}
if (site.url) {
if (site.url && site.parameters?.photos !== false) {
return `${site.url}${albumPath}`;
}