diff --git a/search_in_youtube_video_comments.py b/search_in_youtube_video_comments.py index 7a89081..1d8a8ca 100755 --- a/search_in_youtube_video_comments.py +++ b/search_in_youtube_video_comments.py @@ -19,9 +19,9 @@ nextPageToken = '' commentRegexCompiled = re.compile(COMMENT_REGEX) def treatComment(comment): - id = comment['id'] textOriginal = comment['snippet']['textOriginal'] if commentRegexCompiled.search(textOriginal): + id = comment['id'] url = f'https://www.youtube.com/watch?v={VIDEO_ID}&lc={id}' print(f'{url} {textOriginal}') if OPEN_IN_FIREFOX: