Based off http://sourceforge.net/p/ytd2