Added /tour filter to affiliate link composition. Added note to scene tag edit field.

This commit is contained in:
2026-03-06 05:13:21 +01:00
parent 16bf7b019f
commit c55f6d2cf2
3 changed files with 7 additions and 2 deletions

View File

@@ -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);