Permalink
Browse files

Modified regexp to use new youtube design (double quotes instead of s…

…ingle quotes).
  • Loading branch information...
1 parent b089a1b commit d7aef385d304cd46635721eff602e7e3bd77a893 @kost kost committed Aug 30, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 ytup.pl
View
@@ -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!";
}

0 comments on commit d7aef38

Please sign in to comment.