Rewrite link parsing, Small fixes

Rather than using the method of extracting the links from yt from xbmc, now using a regex instead. Cleaned up small things and added a check for 0 byte content-length (now skips if 0).