[Issue} Using gamemode as a server hosting youtube
Closed this issue · 2 comments
So I am hosting this gamemode ona a dedicated server in Canada. The server runs great and everything but youtube is working
I was playing around with the code but ran into some issues. It turns out youtube is asking if I am a bot because youtube isn't logged in on the get.
I decided to put my cookie in the header. And that worked great for the person requesting a video and fixed the problem. However, for anyone else this was a problem and would throw a playback error for anyone else but the hoster which is strange (I don't really know much about your code)
The risky part about this is also hosting a cookie for one of your accounts in the main code.
I am not sure what all your code does but would love to see a fix for this. I may tweak with this a bit more tomorrow and try to find a permanent fix for the problem at hand but this is what I am seeing.
What I changed to fix the sign in issue
httpheaders - sh_base.lua in theater modules
['Cookie'] = "put cookies here"
This cookie also tends to expire rather often which isn't good.
Single player works great for reference
My server has no additional addons or code running. Just the cinema gamemode
Unfortunately this is not a long term solution, a solution would be to query the clientside instead of the serverside. This has already been done with some other services.
Soo... i've done changes to YouTube, the metadata query is now on the clientside to avoid future problems on dedicated servers with a non-residential (data center) IP address. If there are still problems, please report them here.