|
|
|
@ -3548,14 +3548,18 @@ class InfoExtractor(object):
|
|
|
|
|
|
|
|
|
|
def extractor():
|
|
|
|
|
comments = []
|
|
|
|
|
interrupted = True
|
|
|
|
|
try:
|
|
|
|
|
while True:
|
|
|
|
|
comments.append(next(generator))
|
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
|
interrupted = True
|
|
|
|
|
self.to_screen('Interrupted by user')
|
|
|
|
|
except StopIteration:
|
|
|
|
|
interrupted = False
|
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
|
self.to_screen('Interrupted by user')
|
|
|
|
|
except Exception as e:
|
|
|
|
|
if self.get_param('ignoreerrors') is not True:
|
|
|
|
|
raise
|
|
|
|
|
self._downloader.report_error(e)
|
|
|
|
|
comment_count = len(comments)
|
|
|
|
|
self.to_screen(f'Extracted {comment_count} comments')
|
|
|
|
|
return {
|
|
|
|
|