Compare commits

..

No commits in common. "283152b1d0861ff0de0e004ae7f18153d228de6f" and "bb8207450778b5b72949594ba1fb3903f541d6ed" have entirely different histories.

View File

@ -167,7 +167,7 @@ class NiconicoChannelPlusIE(NiconicoChannelPlusBaseIE):
headers={'Content-Type': 'application/json'},
query={
'sort_direction': 'asc',
'limit': int_or_none(self._configuration_arg('max_comments', [''])[0]) or 120,
'limit': traverse_obj(self._configuration_arg('max_comments', [120]), (0, )),
},
data=json.dumps({
'token': comment_access_token,
@ -217,7 +217,7 @@ class NiconicoChannelPlusIE(NiconicoChannelPlusBaseIE):
raise ExtractorError(f'Unknown type: {video_type}', video_id=content_code, expected=False)
# help us to analyze when error occurs
self.write_debug(f'{content_code}: video_type={video_type}, live_status={live_status}')
self.to_screen(f'{content_code}: video_type={video_type}, live_status={live_status}')
session_id = self._call_api(
f'video_pages/{content_code}/session_ids', item_id=f'{content_code}/session',