Added /tour filter to affiliate link composition. Added note to scene tag edit field.
This commit is contained in:
@@ -31,6 +31,10 @@ export function getAffiliateSceneUrl(scene) {
|
||||
return watchUrl;
|
||||
}
|
||||
|
||||
if (scene.affiliate.parameters.channelScenes === false && scene.channel && scene.affiliate.entityId !== scene.channel.id) {
|
||||
return watchUrl;
|
||||
}
|
||||
|
||||
if (scene.affiliate.parameters.dynamicScene) {
|
||||
const scenePath = new URL(watchUrl).pathname;
|
||||
|
||||
@@ -65,7 +69,7 @@ export function getAffiliateSceneUrl(scene) {
|
||||
&& (!scene.channel.isIndependent || scene.channel.id === scene.affiliate.entityId)) {
|
||||
const { pathname, search } = new URL(watchUrl);
|
||||
|
||||
return `${affiliateUrl}${pathname.replace(/^\/trial/, '')}${search}`; // replace needed for Jules Jordan, verify behavior on other sites
|
||||
return `${affiliateUrl}${pathname.replace(/^\/(trial|tour)/, '')}${search}`; // replace needed for Jules Jordan and HussiePass, verify behavior on other sites
|
||||
}
|
||||
|
||||
const affiliateUrlComponents = new URL(affiliateUrl);
|
||||
|
||||
Reference in New Issue
Block a user