My Youtube integration stopped working and I discovered it was because Youtube showed the Consent dialog and was waiting for the user to click a button. It seems adding the "CONSENT=YES+cb" cookie is no longer enough.
I replaced the existing cookie handling by switching toClientSession to handle requests instead. In the startup code I request the CHANNEL_LIVE_URL and check if returns a consent dialog. If so, I search for the first form tag found and POST the form. This returns the proper consent cookies, which are stored by the session for all later calls.
My Youtube integration stopped working and I discovered it was because Youtube showed the Consent dialog and was waiting for the user to click a button. It seems adding the "CONSENT=YES+cb" cookie is no longer enough.
I replaced the existing cookie handling by switching to
ClientSession
to handle requests instead. In the startup code I request theCHANNEL_LIVE_URL
and check if returns a consent dialog. If so, I search for the firstform
tag found and POST the form. This returns the proper consent cookies, which are stored by thesession
for all later calls.