From cdb3ca7416d0d5c488317e58305a95b4ecb8d826 Mon Sep 17 00:00:00 2001 From: nishi <21977496+mptnan@users.noreply.github.com> Date: Wed, 23 Oct 2024 04:50:27 +0900 Subject: [PATCH] properly refer record_format's value --- TikTokLive/client/web/routes/download_video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TikTokLive/client/web/routes/download_video.py b/TikTokLive/client/web/routes/download_video.py index e2286e8..84aa123 100644 --- a/TikTokLive/client/web/routes/download_video.py +++ b/TikTokLive/client/web/routes/download_video.py @@ -128,7 +128,7 @@ def __call__( record_time: Optional[str] = f"-t {record_for}" if record_for and record_for > 0 else None record_data: dict = json.loads(room_info['stream_url']['live_core_sdk_data']['pull_data']['stream_data']) record_url_data: dict = record_data['data'][quality.value]['main'] - record_url: str = record_url_data.get(record_format) or record_url_data['flv'] + record_url: str = record_url_data.get(record_format.value) or record_url_data['flv'] self._ffmpeg = FFmpeg( inputs={**{record_url: None}, **kwargs.pop('inputs', dict())},