Browse Source

Fix cookie format

microtasks
tech234a 3 years ago
parent
commit
90c48d10b0
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      worker.py

+ 2
- 1
worker.py View File

@@ -73,7 +73,8 @@ if not (cookies["HSID"] and cookies["SSID"] and cookies["SID"]):
mysession = requests.session()
mysession.headers.update({"cookie": "HSID="+cookies["HSID"]+"; SSID="+cookies["SSID"]+"; SID="+cookies["SID"], "Accept-Language": "en-US",})

open("cookies.txt", "w").write(""".youtube.com TRUE / FALSE 1663793455 SID [SID]
open("cookies.txt", "w").write("""# HTTP Cookie File
.youtube.com TRUE / FALSE 1663793455 SID [SID]
.youtube.com TRUE / FALSE 1663793455 HSID [HSID]
.youtube.com TRUE / TRUE 1663793455 SSID [SSID]""".replace("[SID]", cookies["SID"]).replace("[HSID]", cookies["HSID"]).replace("[SSID]", cookies["SSID"]))



Loading…
Cancel
Save