Skip to content

Commit

Permalink
Fix: ensure unique playback time for comment dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
aorinngoDo committed Dec 16, 2024
1 parent 0986531 commit 353e79b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nicochannel_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def get_unique_list(_list):
comments_length_per_page = get_comments_single_page(oldest_time)
if comments_length_per_page <= 1:
break
oldest_time = self.comment_dumps[-1].get("playback_time")
oldest_time = self.comment_dumps[-1].get("playback_time") if oldest_time != self.comment_dumps[-1].get("playback_time") else int(self.comment_dumps[-1].get("playback_time")) + 1


self.comment_dumps = get_unique_list(self.comment_dumps)
Expand Down

0 comments on commit 353e79b

Please sign in to comment.