mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-05 06:26:26 +01: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:
1 parent
953ffe889e
commit
9896e4381b
4 files changed
+52
-19
No files matched your search
@@ -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