add some legacy code for youtube videos