Skip to content

Commit

Permalink
fix: fix const
Browse files Browse the repository at this point in the history
  • Loading branch information
AmbitiousJun committed Jan 11, 2025
1 parent ceeaf24 commit a2d4c00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/emby/playing.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ func PlayingStoppedHelper(c *gin.Context) {
kType, kName, apiKey := getApiKey(c)

// 至少播放 5 分钟才记录进度
positionTicks, ok := bodyJson.Attr("PositionTicks").Int()
minPos := 5 * 60 * 10_000_000
positionTicks, ok := bodyJson.Attr("PositionTicks").Int64()
var minPos int64 = 5 * 60 * 10_000_000
if !ok || positionTicks < minPos {
return
}
Expand Down

0 comments on commit a2d4c00

Please sign in to comment.