From 54a1f498f1daa71c319583cced7a8d0ef59fc5c3 Mon Sep 17 00:00:00 2001
From: dirkf <fieldhouse@gmx.net>
Date: Sun, 30 Oct 2022 21:07:50 +0000
Subject: [PATCH] Ensure primary is a dict

Test commit to provoke CI tests
---
 youtube_dl/extractor/parler.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/parler.py b/youtube_dl/extractor/parler.py
index 0dce52f3f..e16bcf749 100644
--- a/youtube_dl/extractor/parler.py
+++ b/youtube_dl/extractor/parler.py
@@ -7,6 +7,7 @@ from ..utils import (
     clean_html,
     int_or_none,
     strip_or_none,
+    try_get,
     unified_timestamp,
     urlencode_postdata,
 )
@@ -91,7 +92,7 @@ class ParlerIE(InfoExtractor):
         data = self._download_json(
             'https://parler.com/open-api/ParleyDetailEndpoint.php', video_id,
             data=urlencode_postdata({'uuid': video_id}))['data'][0]
-        primary = data['primary']
+        primary = try_get(data, lambda x: x['primary'], dict) or {}
 
         embed = self._parse_json(primary.get('V2LINKLONG') or '', video_id, fatal=False)
         if embed: