mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-26 02:25:55 +00:00
Update yt_dlp/extractor/patreon.py
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
parent
b9a7cd6c67
commit
f7fb9e42e4
@ -426,7 +426,7 @@ class PatreonIE(PatreonBaseIE):
|
|||||||
f'posts/{post_id}/comments', post_id, query=params, note=f'Downloading comments page {page}')
|
f'posts/{post_id}/comments', post_id, query=params, note=f'Downloading comments page {page}')
|
||||||
|
|
||||||
cursor = None
|
cursor = None
|
||||||
for comment in traverse_obj(response, (('data', ('included', lambda _, v: v['type'] == 'comment')), ...)):
|
for comment in traverse_obj(response, (('data', 'included'), lambda _, v: v['type'] == 'comment' and v['id'])):
|
||||||
count += 1
|
count += 1
|
||||||
if (comment_id := try_call(lambda: comment.get('id'))) is None:
|
if (comment_id := try_call(lambda: comment.get('id'))) is None:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user