Prevent manual skips from triggering a view

This commit is contained in:
Ajay Ramachandran 2020-03-09 18:07:06 -04:00
parent 50517eb462
commit 760c08dd0c

View file

@ -848,10 +848,9 @@ function skipToTime(v, index, sponsorTimes, openNotice) {
}
//send telemetry that a this sponsor was skipped
if (Config.config.trackViewCount && !sponsorSkipped[index]) {
if (Config.config.trackViewCount && !sponsorSkipped[index] && !Config.config.disableAutoSkip) {
utils.sendRequestToServer("POST", "/api/viewedVideoSponsorTime?UUID=" + currentUUID);
if (!Config.config.disableAutoSkip) {
// Count this as a skip
Config.config.minutesSaved = Config.config.minutesSaved + (sponsorTimes[index][1] - sponsorTimes[index][0]) / 60;
Config.config.skipCount = Config.config.skipCount + 1;
@ -859,7 +858,6 @@ function skipToTime(v, index, sponsorTimes, openNotice) {
sponsorSkipped[index] = true;
}
}
}
}
function unskipSponsorTime(UUID) {