From 4b3bc81777bd57e26c2ce29800f76af7b8c5c12e Mon Sep 17 00:00:00 2001 From: Ben Welsh Date: Mon, 8 Aug 2022 11:03:00 -0700 Subject: [PATCH 1/3] Update youtube_dl/extractor/parler.py Co-authored-by: dirkf --- youtube_dl/extractor/parler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/parler.py b/youtube_dl/extractor/parler.py index 79888d8dd..267d9ff6b 100644 --- a/youtube_dl/extractor/parler.py +++ b/youtube_dl/extractor/parler.py @@ -63,8 +63,8 @@ class ParlerIE(InfoExtractor): # Pull out metadata title = clean_html(data.get("full_body")).replace("\n", "") timestamp = unified_timestamp(data.get("date_created")) - uploader = data.get("name") - uploader_id = data.get("username") + uploader = strip_or_none(data.get('name')) + uploader_id = strip_or_none(data.get('username')) uploader_url = "https://parler.com/" + uploader_id if uploader_id else None # Return the result From 40f370c358fc374bc42aa721c76c6611a60ea69b Mon Sep 17 00:00:00 2001 From: Ben Welsh Date: Mon, 8 Aug 2022 11:03:09 -0700 Subject: [PATCH 2/3] Update youtube_dl/extractor/parler.py Co-authored-by: dirkf --- youtube_dl/extractor/parler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/parler.py b/youtube_dl/extractor/parler.py index 267d9ff6b..b35ff6cbd 100644 --- a/youtube_dl/extractor/parler.py +++ b/youtube_dl/extractor/parler.py @@ -62,7 +62,7 @@ class ParlerIE(InfoExtractor): # Pull out metadata title = clean_html(data.get("full_body")).replace("\n", "") - timestamp = unified_timestamp(data.get("date_created")) + timestamp = unified_timestamp(data.get('date_created')) uploader = strip_or_none(data.get('name')) uploader_id = strip_or_none(data.get('username')) uploader_url = "https://parler.com/" + uploader_id if uploader_id else None From e46a2a58e200aa736eb5594c49b169848d2dbb78 Mon Sep 17 00:00:00 2001 From: Ben Welsh Date: Mon, 8 Aug 2022 11:03:18 -0700 Subject: [PATCH 3/3] Update youtube_dl/extractor/parler.py Co-authored-by: dirkf --- youtube_dl/extractor/parler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/parler.py b/youtube_dl/extractor/parler.py index b35ff6cbd..76033042a 100644 --- a/youtube_dl/extractor/parler.py +++ b/youtube_dl/extractor/parler.py @@ -65,7 +65,7 @@ class ParlerIE(InfoExtractor): timestamp = unified_timestamp(data.get('date_created')) uploader = strip_or_none(data.get('name')) uploader_id = strip_or_none(data.get('username')) - uploader_url = "https://parler.com/" + uploader_id if uploader_id else None + uploader_url = ('https://parler.com/' + uploader_id) if uploader_id else None # Return the result return {