From 791cc954bd6228f0583c66b10fe20c4157cfd663 Mon Sep 17 00:00:00 2001 From: Jackson Humphrey Date: Wed, 13 Nov 2024 12:47:51 -0600 Subject: [PATCH] Update yt_dlp/extractor/patreon.py Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com> --- yt_dlp/extractor/patreon.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/yt_dlp/extractor/patreon.py b/yt_dlp/extractor/patreon.py index c6aa2550bd..762b7a1216 100644 --- a/yt_dlp/extractor/patreon.py +++ b/yt_dlp/extractor/patreon.py @@ -428,9 +428,8 @@ class PatreonIE(PatreonBaseIE): cursor = None for comment in traverse_obj(response, (('data', 'included'), lambda _, v: v['type'] == 'comment' and v['id'])): count += 1 - if (comment_id := try_call(lambda: comment.get('id'))) is None: - continue - attributes = comment.get('attributes') or {} + comment_id = comment['id'] + attributes = traverse_obj(comment, ('attributes', {dict})) or {} author_id = traverse_obj(comment, ('relationships', 'commenter', 'data', 'id')) author_info = traverse_obj( response, ('included', lambda _, v: v['id'] == author_id and v['type'] == 'user', 'attributes'),