It's complicated, but the rules boil down to the absolute canon being the films, then the in-canon TV shows (Clone Wars and Rebels), then the comic books and the newer series of novels. The movies have precedence over everything, so if there's a contradiction, the movies win. Any secondary...