Fix rare edge case where comment author is None. (#676)

This happens mostly for older YT profiles that has not set-up a @-handle.
pull/690/head
dot-mike 3 months ago committed by GitHub
parent 6dcef70b8e
commit 45f455070d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -115,6 +115,9 @@ class Comments:
time_text = time_text_datetime.strftime(format_string)
if not comment.get("author"):
comment["author"] = comment.get("author_id", "Unknown")
cleaned_comment = {
"comment_id": comment["id"],
"comment_text": comment["text"].replace("\xa0", ""),

Loading…
Cancel
Save