Commit 697ad94275

697ad94275b20720a14c794991e9a8ce0740115c

parent: 0612f42bde

Unsigned

Wraient <wraient.911@gmail.com> · 2024-10-22 16:51 UTC

Fix: minor change

Layout: unified · split

cmd/curd/main.go +3 −5
@@ -70,8 +70,6 @@ func main() {
7070 userCurdConfig.SubOrDub = "dub"
7171 }
7272
73 fmt.Println(userCurdConfig)
74 os.Exit(0)
7573
7674 // Get the token from the token file
7775 user.Token, err = internal.GetTokenFromFile(os.ExpandEnv("$HOME/.local/share/curd/token"))
@@ -195,7 +193,7 @@ func main() {
195193 time.Sleep(1 * time.Second)
196194
197195 // Get current playback time
198 internal.Log("Getting playback time "+anime.Ep.Player.SocketPath, logFile)
196 // internal.Log("Getting playback time "+anime.Ep.Player.SocketPath, logFile)
199197 timePos, err := internal.MPVSendCommand(anime.Ep.Player.SocketPath, []interface{}{"get_property", "time-pos"})
200198 if err != nil {
201199 internal.Log("Error getting playback time: "+err.Error(), logFile)
@@ -241,8 +239,8 @@ func main() {
241239 if err != nil {
242240 internal.Log("Error updating local database: "+err.Error(), logFile)
243241 } else {
244 internal.Log(fmt.Sprintf("Updated database: AnilistId=%d, AllanimeId=%s, EpNumber=%d, PlaybackTime=%d",
245 anime.AnilistId, anime.AllanimeId, anime.Ep.Number, anime.Ep.Player.PlaybackTime), logFile)
242 // internal.Log(fmt.Sprintf("Updated database: AnilistId=%d, AllanimeId=%s, EpNumber=%d, PlaybackTime=%d",
243 // anime.AnilistId, anime.AllanimeId, anime.Ep.Number, anime.Ep.Player.PlaybackTime), logFile)
246244 }
247245 }
248246 }