mirror of
https://github.com/younesaassila/ttv-lol-pro.git
synced 2025-05-01 06:54:27 +02:00
📝 Few adjustments
This commit is contained in:
parent
f7636e98b4
commit
754bdd2b90
@ -16,9 +16,12 @@ export default function onBeforeRequest(
|
|||||||
_type.toLowerCase() === "vod" ? PlaylistType.VOD : PlaylistType.Playlist;
|
_type.toLowerCase() === "vod" ? PlaylistType.VOD : PlaylistType.Playlist;
|
||||||
const searchParams = new URLSearchParams(_params);
|
const searchParams = new URLSearchParams(_params);
|
||||||
|
|
||||||
|
// No redirect if VOD proxying is disabled.
|
||||||
if (playlistType === PlaylistType.VOD && store.state.disableVodRedirect) {
|
if (playlistType === PlaylistType.VOD && store.state.disableVodRedirect) {
|
||||||
console.log(`${streamId}: VOD proxying is disabled (Options)`);
|
console.log(
|
||||||
setStreamStatus(streamId, false, "VOD proxying is disabled (Options)");
|
`${streamId}: No redirect (VOD proxying is disabled in Options)`
|
||||||
|
);
|
||||||
|
setStreamStatus(streamId, false, "VOD proxying is disabled in Options");
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,7 +63,7 @@ export default function onBeforeRequest(
|
|||||||
// Remove sensitive information for live streams.
|
// Remove sensitive information for live streams.
|
||||||
["token", "sig"].forEach(param => searchParams.delete(param));
|
["token", "sig"].forEach(param => searchParams.delete(param));
|
||||||
}
|
}
|
||||||
// Note: TTV LOL's API requires Twitch token for VODs, so we can't remove it.
|
// Note: TTV LOL's API requires a Twitch token for VODs, so we can't remove it.
|
||||||
}
|
}
|
||||||
|
|
||||||
const status = store.state.streamStatuses[streamId];
|
const status = store.state.streamStatuses[streamId];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user