Cannot Download The Whole YouTube Link's HTML Code

view story

http://stackoverflow.com – I'm writing an app that downloads youtube videos and I got a lttle problem. As you might know, each video link in youtuube contains direct links to the video. When the page uses the flash flayer (and not html5 or so), it is stored in the flash object (in it's flashvar attr). My app parses that flash object and extract from it those direct links (one link for each available video quality). I get the flash object's html code by downloading the video's html code (e.g http://www.youtube.com/watch?v=VIDEOID) and parsing it. I use asynctask to dowload the html code (the non mobile version), and h (HowTos)