Some refactoring for finding videoid. Added better title detection.