mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-06 18:52:43 +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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user