From 5a13fdd2254d3dde52818e07cd7c5d88a74a6125 Mon Sep 17 00:00:00 2001 From: "Lesmiscore (Naoya Ozaki)" Date: Fri, 4 Feb 2022 14:54:33 +0900 Subject: [PATCH] [twitcasting] Enforce UTF-8 for POST payload (#2521) Authored by: Lesmiscore --- yt_dlp/extractor/twitcasting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/twitcasting.py b/yt_dlp/extractor/twitcasting.py index 5eb3926d64..8c2235a8ec 100644 --- a/yt_dlp/extractor/twitcasting.py +++ b/yt_dlp/extractor/twitcasting.py @@ -85,7 +85,7 @@ def _real_extract(self, url): if video_password: request_data = urlencode_postdata({ 'password': video_password, - }) + }, encoding='utf-8') webpage = self._download_webpage( url, video_id, data=request_data, headers={'Origin': 'https://twitcasting.tv'})