Browse Source

Attempt #3?

master
madprogramer 3 years ago
parent
commit
070401c3a8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      discovery.py

+ 1
- 1
discovery.py View File

@@ -39,7 +39,7 @@ def getmetadata(mysession, vid, ccenabledonly=False):
#('forceedit', 'captions'),
("lang","aa")
)
mysession.headers.update({"cookie": "HSID="+cookies["HSID"]+"; SSID="+cookies["SSID"]+"; SID="+cookies["SID"], "Accept-Language": "en-US",})
#mysession.headers.update({"cookie": "HSID="+cookies["HSID"]+"; SSID="+cookies["SSID"]+"; SID="+cookies["SID"], "Accept-Language": "en-US",})
ccenabled = not "yet enabled community" in mysession.get("https://www.youtube.com/timedtext_editor", params=pparams).text
#print(mysession.get("https://www.youtube.com/timedtext_editor", params=pparams).text)
creditdata = {}


Loading…
Cancel
Save