You can use any input on the TV that has analog left right connection. If the soundbar has this connection on it and you don't need it for the TV then it would be better to go straight into the soundbar. That way the TV doesn't need to be on for music and it will sound better.
I hope this is a temporary connection as most soundbars are pretty bad and even worse for music.