mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-23 01:09:26 +02:00
Add:Daily cron that closes stale open playback sessions
This commit is contained in:
parent
43217657d7
commit
fed5ff4863
5 changed files with 56 additions and 2 deletions
|
@ -233,6 +233,7 @@ class ShareController {
|
|||
}
|
||||
|
||||
playbackSession.currentTime = Math.min(currentTime, playbackSession.duration)
|
||||
playbackSession.updatedAt = Date.now()
|
||||
Logger.debug(`[ShareController] Update share playback session ${req.cookies.share_session_id} currentTime: ${playbackSession.currentTime}`)
|
||||
res.sendStatus(204)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue