mirror of
https://github.com/Apologieze/Benri.git
synced 2026-01-18 17:17:21 +01:00
Fix presence ep number
This commit is contained in:
@@ -6,6 +6,11 @@
|
||||
</div>
|
||||
<br>
|
||||
|
||||
## Features
|
||||
- Complete Anilist integration to save your progression and browse anime
|
||||
- Discord Rich Presence
|
||||
- Resume where you left off in the episode
|
||||
|
||||
## Download
|
||||
- If you're on Windows, you can download the latest executable [here](https://uwu.apologize.fr/download) <br>
|
||||
|
||||
|
||||
@@ -243,7 +243,7 @@ func playingAnimeLoop(playingAnime curd.Anime, animeData *verniy.MediaList, savi
|
||||
}
|
||||
}
|
||||
|
||||
presenceAnime := richPresence.PresenceAnime{Name: playingAnime.Title.English, Ep: playingAnime.Ep.Number, ImageLink: *animeData.Media.CoverImage.Large, PlaybackTime: 0, Duration: playingAnime.Ep.Duration, TotalEp: playingAnime.TotalEpisodes}
|
||||
presenceAnime := richPresence.PresenceAnime{Name: playingAnime.Title.English, Ep: playingAnime.Ep.Number + 1, ImageLink: *animeData.Media.CoverImage.Large, PlaybackTime: 0, Duration: playingAnime.Ep.Duration, TotalEp: playingAnime.TotalEpisodes}
|
||||
for {
|
||||
time.Sleep(1 * time.Second)
|
||||
timePos, err := curd.MPVSendCommand(playingAnime.Ep.Player.SocketPath, []interface{}{"get_property", "time-pos"})
|
||||
|
||||
Reference in New Issue
Block a user