You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thank you for your great work.
I have used ytstudio module about a month and it operates very well until a week ago. But since a week ago 'ytcfg is not defined' error is occurring whenever 'await yt.login()' calls.
To solve the problem, I erased all the cookies and re-login in studio.youtube.com on browser several times, and correct the
new cookies data and printed all cookies data in ytstudio's Studio class to confirm if cookies is correct or not
Cookie datas in login.json was correct (include SESSION_TOKEN too (from developer mode /grst ) but looks like it can't read the site's script and 'ytcfg' object.
Is studio.youtube.com changed recently , or Am I missing something?
File "/home/utylee/.virtualenvs/misc/lib/python3.8/site-packages/ytstudio/init.py", line 68, in login
self.js.execute(
js2py.internals.simplex.JsException: ReferenceError: ytcfg is not defined
The text was updated successfully, but these errors were encountered:
First, thank you for your great work.
I have used ytstudio module about a month and it operates very well until a week ago. But since a week ago 'ytcfg is not defined' error is occurring whenever 'await yt.login()' calls.
To solve the problem, I erased all the cookies and re-login in studio.youtube.com on browser several times, and correct the
new cookies data and printed all cookies data in ytstudio's Studio class to confirm if cookies is correct or not
Cookie datas in login.json was correct (include SESSION_TOKEN too (from developer mode /grst ) but looks like it can't read the site's script and 'ytcfg' object.
Is studio.youtube.com changed recently , or Am I missing something?
[ in my_program.py ]
...
await yt.login()
...
[ in module ytstudio/init.py ]
...
async def login(self) -> bool:
....
self.js.execute(f"{script} window.ytcfg = ytcfg;")
==>
File "/home/utylee/.virtualenvs/misc/lib/python3.8/site-packages/ytstudio/init.py", line 68, in login
self.js.execute(
js2py.internals.simplex.JsException: ReferenceError: ytcfg is not defined
The text was updated successfully, but these errors were encountered: