From 74a01e38a9f08a38f2a453b0eaa7190892d2a871 Mon Sep 17 00:00:00 2001 From: Apologieze <47333595+Apologieze@users.noreply.github.com> Date: Wed, 19 Mar 2025 21:10:27 -0400 Subject: [PATCH] Fix presence ep number --- README.md | 5 +++++ src/curdIntegration.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3f485ea..15eb0e5 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,11 @@
+## 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)
diff --git a/src/curdIntegration.go b/src/curdIntegration.go index 87fbde8..f9c0024 100644 --- a/src/curdIntegration.go +++ b/src/curdIntegration.go @@ -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"})