Skip to content

Commit

Permalink
Make sure you will get the video view/progress on the next request
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielnetoDotCom committed Sep 14, 2021
1 parent dd26f24 commit 9ad6c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/PlayerSkins/PlayerSkins.php
Expand Up @@ -538,7 +538,7 @@ static function playerJSCodeOnLoad($videos_id, $nextURL = "") {
url += '?t=' + time;
}
$('#linkCurrentTime, .linkCurrentTime').val(url);
if (time >= 5 && time % 30 === 0) {
if (time >= 5 && time % 5 === 0) {
addView({$videos_id}, time);
}
});
Expand Down

0 comments on commit 9ad6c41

Please sign in to comment.