From d993580e6fd2f8123985e341e114a69277ba3fcf Mon Sep 17 00:00:00 2001 From: ChocoLZS <61224208+ChocoLZS@users.noreply.github.com> Date: Wed, 11 Sep 2024 09:15:34 +0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Mozi <29089388+pzhlkj6612@users.noreply.github.com> --- yt_dlp/extractor/pialive.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/pialive.py b/yt_dlp/extractor/pialive.py index 34529888df..69b484fd5f 100644 --- a/yt_dlp/extractor/pialive.py +++ b/yt_dlp/extractor/pialive.py @@ -56,7 +56,9 @@ class PiaLiveIE(InfoExtractor): payload, content_type = multipart_encode({ 'play_url': video_key, - 'api_key': self.API_KEY}) + 'api_key': self.API_KEY, + }) + player_tag_list = self._download_json( f'{self.PIA_LIVE_API_URL}/perf/player-tag-list/{program_code}', program_code,