mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-02 17:24:57 +02:00
Update:Setup variables to control when a media item is marked as finished. By time remaining or progress percentage #837
This commit is contained in:
parent
953ffe889e
commit
9896e4381b
4 changed files with 52 additions and 19 deletions
|
@ -297,7 +297,6 @@ export default class PlayerHandler {
|
|||
if (listeningTimeToAdd > 20) {
|
||||
syncData = {
|
||||
timeListened: listeningTimeToAdd,
|
||||
duration: this.getDuration(),
|
||||
currentTime: this.getCurrentTime()
|
||||
}
|
||||
}
|
||||
|
@ -317,7 +316,6 @@ export default class PlayerHandler {
|
|||
const listeningTimeToAdd = Math.max(0, Math.floor(this.listeningTimeSinceSync))
|
||||
const syncData = {
|
||||
timeListened: listeningTimeToAdd,
|
||||
duration: this.getDuration(),
|
||||
currentTime
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue