Add a comment about if totalReplyCount > 0 condition

This commit is contained in:
2023-07-05 23:20:15 +02:00
parent 0dc0cc45fc
commit 97750eb498

View File

@@ -44,6 +44,7 @@ while True:
break
commentsNextPageToken = commentsData['nextPageToken']
else:
# This condition is to manage properly `item`s without `replies` entry.
if totalReplyCount > 0:
for comment in item['replies']['comments']:
treatComment(comment)