Skip to content

Commit 69e9500

Browse files
committed
* Do not count reload if player is loaded after that
1 parent d705292 commit 69e9500

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/renderer/views/Watch/Watch.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,6 +1264,12 @@ export default defineComponent({
12641264
},
12651265

12661266
handleVideoLoaded: function () {
1267+
if (this.sabrReloadCount > 0) {
1268+
// DO NOT count player reload requests during video playback (at the middle)
1269+
// Video loaded = not reload loop
1270+
this.sabrReloadCount--
1271+
}
1272+
12671273
// will trigger again if you switch formats or change legacy quality
12681274
// Check isUpcoming to avoid marking upcoming videos as watched if the user has only watched the trailer
12691275
if (!this.videoPlayerLoaded && !this.isUpcoming) {

0 commit comments

Comments
 (0)