Skip to content

Commit

Permalink
fixed CamelCase typo
Browse files Browse the repository at this point in the history
  • Loading branch information
the-eduardo committed Jan 4, 2025
1 parent c59044c commit 4747359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/player/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func NewRichPresenceUpdater(anime *api.Anime, isPaused *bool, animeMutex *sync.M
}
}

func (rpu *RichPresenceUpdater) getCurrentPlaybackPosition() (time.Duration, error) {
func (rpu *RichPresenceUpdater) GetCurrentPlaybackPosition() (time.Duration, error) {
position, err := mpvSendCommand(rpu.socketPath, []interface{}{"get_property", "time-pos"})
if err != nil {
return 0, err
Expand Down Expand Up @@ -91,7 +91,7 @@ func (rpu *RichPresenceUpdater) updateDiscordPresence() {
rpu.animeMutex.Lock()
defer rpu.animeMutex.Unlock()

currentPosition, err := rpu.getCurrentPlaybackPosition()
currentPosition, err := rpu.GetCurrentPlaybackPosition()
if err != nil {
if util.IsDebug {
log.Printf("Error fetching playback position: %v\n", err)
Expand Down

0 comments on commit 4747359

Please sign in to comment.