Commit 206da570f0
Unsigned
Layout: unified · split
internal/curd.go +1 −1
| @@ -128,7 +128,7 @@ func SetupCurd(userCurdConfig *CurdConfig, anime *Anime, user *User, databaseAni | |||
| 128 | 128 | ||
| 129 | if anime.Ep.ContinueLast { | 129 | if anime.Ep.ContinueLast { |
| 130 | // Get the last watched anime ID from the curd_id file | 130 | // 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") |
| 132 | curdIDBytes, err := os.ReadFile(curdIDPath) | 132 | curdIDBytes, err := os.ReadFile(curdIDPath) |
| 133 | if err != nil { | 133 | if err != nil { |
| 134 | Log(fmt.Sprintf("Error reading curd_id file: %v", err), logFile) | 134 | Log(fmt.Sprintf("Error reading curd_id file: %v", err), logFile) |