mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Unify formatting
This commit is contained in:
parent
2fee621843
commit
6d3e88aeb5
1 changed files with 0 additions and 2 deletions
|
@ -809,9 +809,7 @@ get "/subscription_ajax" do |env|
|
|||
|
||||
client = make_client(YT_URL)
|
||||
subs = client.get("/subscription_manager?disable_polymer=1", headers)
|
||||
|
||||
headers["Cookie"] += "; " + subs.cookies.add_request_headers(headers)["Cookie"]
|
||||
|
||||
match = subs.body.match(/'XSRF_TOKEN': "(?<session_token>[A-Za-z0-9\_\-\=]+)"/)
|
||||
if match
|
||||
session_token = match["session_token"]
|
||||
|
|
Loading…
Reference in a new issue