temporary fix for is_favorited extraction error

This commit is contained in:
Simon 2023-06-22 23:27:16 +07:00
parent 094ccf4186
commit 103409770d
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 3 additions and 1 deletions

View File

@ -120,7 +120,9 @@ class Comments:
"comment_timestamp": comment["timestamp"],
"comment_time_text": time_text,
"comment_likecount": comment["like_count"],
"comment_is_favorited": comment["is_favorited"],
"comment_is_favorited": comment.get(
"is_favorited"
), # temporary fix for yt-dlp upstream issue 7389
"comment_author": comment["author"],
"comment_author_id": comment["author_id"],
"comment_author_thumbnail": comment["author_thumbnail"],