From ff952d586b3302d706cbdc14de8c17f75990397d Mon Sep 17 00:00:00 2001 From: Ben Welsh Date: Mon, 8 Aug 2022 09:47:08 -0700 Subject: [PATCH] Update youtube_dl/extractor/parler.py Co-authored-by: dirkf --- youtube_dl/extractor/parler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/parler.py b/youtube_dl/extractor/parler.py index ab7ddf319..b3cd3ab85 100644 --- a/youtube_dl/extractor/parler.py +++ b/youtube_dl/extractor/parler.py @@ -56,9 +56,9 @@ class ParlerIE(InfoExtractor): status = self._download_json(api_url, video_id, data=payload) # Pull out video - data = status["data"][0]["primary"] - video = data["video_data"] - url = video["videoSrc"] + url = status['data'][0]['primary']['video_data']['videoSrc'] + # now we know this exists and is a dict + data = status['data'][0]['primary'] # Pull out metadata title = clean_html(data.get("full_body")).replace("\n", "")