Commit 206da570f0

206da570f00328b217203c72e8d3891ce2b65e9a

parent: ec02a1f52b

Unsigned

Wraient <wraient.911@gmail.com> · 2024-10-23 10:56 UTC

Fix: Bug

Layout: unified · split

internal/curd.go +1 −1
@@ -128,7 +128,7 @@ func SetupCurd(userCurdConfig *CurdConfig, anime *Anime, user *User, databaseAni
128128
129129 if anime.Ep.ContinueLast {
130130 // Get the last watched anime ID from the curd_id file
131 curdIDPath := filepath.Join(os.Getenv(userCurdConfig.StoragePath), "curd_id")
131 curdIDPath := filepath.Join(os.ExpandEnv(userCurdConfig.StoragePath), "curd_id")
132132 curdIDBytes, err := os.ReadFile(curdIDPath)
133133 if err != nil {
134134 Log(fmt.Sprintf("Error reading curd_id file: %v", err), logFile)