I see that. But how did you get around the agreement at
http://www.youtube.com/static?template=terms writes "You shall not download any Content unless you see a "download" or similar link displayed by YouTube on the Service for that Content. You shall not copy, reproduce, distribute, transmit, broadcast, display, sell, license, or otherwise exploit any Content for any other purposes without the prior written consent of YouTube or the respective licensors of the Content."
So how do software authors get around that and avoid a tussle/fight with Google?