Skip to content

Commit

Permalink
[YouTube] Fix downloading comments for videos with only one comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bbepis committed Oct 29, 2020
1 parent 0851123 commit 5c73b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -2126,7 +2126,7 @@ def get_continuation(continuation, itct, session_token, replies=False):

if first_continuation:

expected_video_comment_count = int(item_section['header']['commentsHeaderRenderer']['countText']['runs'][0]['text'].replace(' Comments', '').replace(',', ''))
expected_video_comment_count = int(item_section['header']['commentsHeaderRenderer']['countText']['runs'][0]['text'].replace(' Comments', '').replace('1 Comment', '1').replace(',', ''))

first_continuation = False

Expand Down

0 comments on commit 5c73b31

Please sign in to comment.