Is it legal to download tv shows?

Depends where you download it from.

If the site owners have permission to make said shows downloadable, Its A-Okay.

However, if they do not have permission to do so, It is called pirating, and is illegal.