Permalink
Browse files

http://www.nicovideo.jp/api/getflv/$video_id だと 403 エラーになるようになった。

  • Loading branch information...
1 parent c4b1c44 commit 252024b35428435b0ab1de26e9b6c3d8155ea51e @cho45 cho45 committed Dec 20, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/WWW/NicoVideo/Download.pm
@@ -41,7 +41,8 @@ sub prepare_download {
$self->login($video_id);
}
- $res = $ua->get("http://www.nicovideo.jp/api/getflv/$video_id");
+ my $time = scalar time;
+ $res = $ua->get("http://flapi.nicovideo.jp/api/getflv?v=$video_id&ts=$time&as3=1");
if ($res->is_error) {
croak "getflv API error: ", $res->status_line;
}

0 comments on commit 252024b

Please sign in to comment.