Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Modified regexp to use new youtube design (double quotes instead of s…
…ingle quotes).
  • Loading branch information
kost committed Aug 30, 2010
1 parent b089a1b commit d7aef38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ytup.pl
Expand Up @@ -262,12 +262,12 @@ sub upload {
die "Failed getting $upload_url: ", $resp->status_line;
}

my $SI = extract_field($resp->content, qr/"sessionKey": "([^"]+)"/);
my $SI = extract_field($resp->content, qr/'sessionKey': '([^']+)'/);
unless ($SI) {
die "Failed extracting sessionKey. YouTube might have redesigned!";
}

my $UK = extract_field($resp->content, qr/"uploadKey": "([^"]+)"/);
my $UK = extract_field($resp->content, qr/'uploadKey': '([^']+)'/);
unless ($UK) {
die "Failed extracting uploadKey. YouTube might have redesigned!";
}
Expand Down

0 comments on commit d7aef38

Please sign in to comment.