Baseball Opening Day

My website www.mlbmagicnumbers.com failed badly last night. I get the stats from a variety of websites and they ALL changed their formats. My code could not find out who won and lost last night so there were no stats to display and no way to calculate the magic number.

I spent two hours this morning sorting it out. I am not a sports guy so I had to look up things like the names of teams for cities that have more than one baseball team (New York, Los Angeles and Chicago). I had to translate divisions and leagues so that I could do the standing for each league and division. I have it working sort of, but now I have to build in the redundancy so if one statistics site fails or is late I can try another.

And whose idea was it to call the Diamondbacks the D-backs? That makes no sense. Diamond is easy to say and spell. It is not used consistently anyway. I had to add about 20 lines of code to handle Diamondbacks since I use the name of a team for as an index all over the place.