mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-01 14:37:57 +00:00
Update youtube_dl/extractor/parler.py
Co-authored-by: dirkf <fieldhouse@gmx.net>
This commit is contained in:
parent
1a82825b9c
commit
ff952d586b
1 changed files with 3 additions and 3 deletions
|
@ -56,9 +56,9 @@ class ParlerIE(InfoExtractor):
|
||||||
status = self._download_json(api_url, video_id, data=payload)
|
status = self._download_json(api_url, video_id, data=payload)
|
||||||
|
|
||||||
# Pull out video
|
# Pull out video
|
||||||
data = status["data"][0]["primary"]
|
url = status['data'][0]['primary']['video_data']['videoSrc']
|
||||||
video = data["video_data"]
|
# now we know this exists and is a dict
|
||||||
url = video["videoSrc"]
|
data = status['data'][0]['primary']
|
||||||
|
|
||||||
# Pull out metadata
|
# Pull out metadata
|
||||||
title = clean_html(data.get("full_body")).replace("\n", "")
|
title = clean_html(data.get("full_body")).replace("\n", "")
|
||||||
|
|
Loading…
Reference in a new issue