tags:

views:

104

answers:

0

Welcome coders,

I have question on my private server i have little script what i use for downloading Youtube videos.

Today i notice that Youtube have changed something, and downloading stop working.

I was extrecting download url from:

$page = body (source), of page with embed video on youtube


 pregmatch('/&video_id=([a-zA-Z0-9-%_]*)&/', $page, $match);
$var_id = $match[1];

pregmatch('/&t=([a-zA-Z0-9-%_]*)&/', $page, $match);
$var_t = $match[1];



            $url = "";
            $url .= $var_id;
            $url .= "&t=";
            $url .= $var_t;
            $url = "http://www.youtube.com/get_video?video_id=".$url;

And something is now fail ;)

http://v18.lscache3.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cratebypass%2Coc%3AU0dXRVJPVF9FSkNNN19KSVhF&itag=37&ipbits=0&sver=3&ratebypass=yes&expire=1280246400&key=yt1&signature=091424816223D80A58EFB1152851D849D92281FA.7CC901D83D8D41C0C2A296F01FF10A6519BDDB1C&id=556aa1af652258a5

That's how look new download url...

PS: not only i have that problem, i see that many users trying download videos but i didn't find new solution... everything is before that "update"