[twitcasting] Enforce UTF-8 for POST payload (#2521)

Authored by: Lesmiscore
This commit is contained in:
Lesmiscore (Naoya Ozaki) 2022-02-04 14:54:33 +09:00 committed by GitHub
parent af5c1c553e
commit 5a13fdd225
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,7 +85,7 @@ def _real_extract(self, url):
if video_password: if video_password:
request_data = urlencode_postdata({ request_data = urlencode_postdata({
'password': video_password, 'password': video_password,
}) }, encoding='utf-8')
webpage = self._download_webpage( webpage = self._download_webpage(
url, video_id, data=request_data, url, video_id, data=request_data,
headers={'Origin': 'https://twitcasting.tv'}) headers={'Origin': 'https://twitcasting.tv'})