Pump issue

fHey all. Look through the forum I didn’t see this issue so I’ll post it here. Came home and my pump wasn’t working. I took it apart, I’m pretty handy, So no issue there. The shaft and impeller both turn freely. But when I turn it on  it hums for about 10 seconds and then shuts off. Motor/impeller  is only about two seasons old. I replaced it a couple years ago - any thoughts? Thanks!

Actually, after further reading it sounds like it’s my capacitor. I’ll change it and see what happens

capacitor changed, working fine. $20 fix is always nice!