Commit 697ad94275
Unsigned
Layout: unified · split
cmd/curd/main.go +3 −5
| @@ -70,8 +70,6 @@ func main() { | |||
| 70 | userCurdConfig.SubOrDub = "dub" | 70 | userCurdConfig.SubOrDub = "dub" |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | fmt.Println(userCurdConfig) | ||
| 74 | os.Exit(0) | ||
| 75 | 73 | ||
| 76 | // Get the token from the token file | 74 | // Get the token from the token file |
| 77 | user.Token, err = internal.GetTokenFromFile(os.ExpandEnv("$HOME/.local/share/curd/token")) | 75 | user.Token, err = internal.GetTokenFromFile(os.ExpandEnv("$HOME/.local/share/curd/token")) |
| @@ -195,7 +193,7 @@ func main() { | |||
| 195 | time.Sleep(1 * time.Second) | 193 | time.Sleep(1 * time.Second) |
| 196 | 194 | ||
| 197 | // Get current playback time | 195 | // 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) |
| 199 | timePos, err := internal.MPVSendCommand(anime.Ep.Player.SocketPath, []interface{}{"get_property", "time-pos"}) | 197 | timePos, err := internal.MPVSendCommand(anime.Ep.Player.SocketPath, []interface{}{"get_property", "time-pos"}) |
| 200 | if err != nil { | 198 | if err != nil { |
| 201 | internal.Log("Error getting playback time: "+err.Error(), logFile) | 199 | internal.Log("Error getting playback time: "+err.Error(), logFile) |
| @@ -241,8 +239,8 @@ func main() { | |||
| 241 | if err != nil { | 239 | if err != nil { |
| 242 | internal.Log("Error updating local database: "+err.Error(), logFile) | 240 | internal.Log("Error updating local database: "+err.Error(), logFile) |
| 243 | } else { | 241 | } else { |
| 244 | internal.Log(fmt.Sprintf("Updated database: AnilistId=%d, AllanimeId=%s, EpNumber=%d, PlaybackTime=%d", | 242 | // 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) | 243 | // anime.AnilistId, anime.AllanimeId, anime.Ep.Number, anime.Ep.Player.PlaybackTime), logFile) |
| 246 | } | 244 | } |
| 247 | } | 245 | } |
| 248 | } | 246 | } |