Skip to content

Commit 3a06888

Browse files
🐛 Fixed Accumulated progress always zero on static progress
1 parent 832353f commit 3a06888

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/media_update.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ func (mu *MediaUpdate) Get(isMediaAdd bool, mediaId int, progress string, status
184184
accumulatedProgress = current - prgInt
185185
}
186186
}
187+
} else {
188+
pgrInt, err := strconv.Atoi(progress)
189+
if err != nil {
190+
return err
191+
}
192+
accumulatedProgress = pgrInt
187193
}
188194

189195
if err != nil {

0 commit comments

Comments
 (0)