Yes, if the word "the" is a proper part of the name then it should be capitalised, otherwise not. However, it can sometimes be hard to establish which is the case, which probably accounts for the discrepancies that you see.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.