Update youtube_dl/extractor/parler.py

Co-authored-by: dirkf <fieldhouse@gmx.net>
This commit is contained in:
Ben Welsh 2022-08-08 09:47:08 -07:00 committed by GitHub
parent 1a82825b9c
commit ff952d586b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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", "")