mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2025-07-05 16:51:10 +00:00
Fix rare edge case where comment author is None.
This happens mostly for older YT profiles that has not set-up a @-handle.
This commit is contained in:
parent
8778546577
commit
f716a3a6ca
@ -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…
x
Reference in New Issue
Block a user