Skip to content

Commit

Permalink
- Fix consent cookie.
Browse files Browse the repository at this point in the history
  • Loading branch information
trizen committed Aug 18, 2024
1 parent 361b23c commit c7fbfd5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/WWW/PipeViewer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,11 @@ sub set_lwp_useragent {
"/", ".youtube.com", undef, 0, 1, "17" . join('', map { int(rand(10)) } 1 .. 8),
0, {});

my $rand_value = '17' . join('', map { int(rand(10)) } 1 .. 8);

$cookies->set_cookie(0, "SOCS", "CAISNQgCEitib3FfaWRlbnRpdHlmcm9udGVuZHVpc2VydmVyXzIwMjMxMDEwLjAyX3AxGgJ1cyABEgUIYKOy0wU=",
"/", ".youtube.com", undef, 0, 1, $rand_value, 0, {});

$agent->cookie_jar($cookies);
}

Expand Down

0 comments on commit c7fbfd5

Please sign in to comment.