this.maildev.on('new', email => {
this.emails.push(email)
-
- console.log('pushed email', email)
})
this.maildev.listen(err => {
}
private handleError (err: any) {
- console.log(err)
-
if (this.authService.isOTPMissingError(err)) {
this.otpStep = true
// ---------------------------------------------------------------------------
async onUpdate () {
- console.log('on update')
-
if (this.playlist) {
this.playlistUrl = await this.getPlaylistUrl()
this.playlistEmbedUrl = await this.getPlaylistEmbedUrl()
})
this.player.on('seeked', () => {
- // Don't take into account small seek events
- if (Math.abs(this.player.currentTime() - lastCurrentTime) < 3) return
+ const diff = Math.floor(this.player.currentTime()) - lastCurrentTime
+
+ // Don't take into account small forwards
+ if (diff > 0 && diff < 3) return
lastViewEvent = 'seek'
})
const lastSection = stats.watchSections[stats.watchSections.length - 1]
if (lastSection.start > currentTime) {
- logger.warn('Invalid end watch section %d. Last start record was at %d.', currentTime, lastSection.start)
+ logger.debug('Invalid end watch section %d. Last start record was at %d. Starting a new section.', currentTime, lastSection.start)
+
+ stats.watchSections.push({
+ start: currentTime,
+ end: currentTime
+ })
} else {
lastSection.end = currentTime
}
await copy(origin, join('artifacts', destname))
}
- console.log(this.server.parallel)
if (this.server.parallel) {
const promise = saveGithubLogsIfNeeded()