mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-14 03:11:24 +01:00
Compare commits
2 Commits
bb82074507
...
283152b1d0
Author | SHA1 | Date | |
---|---|---|---|
|
283152b1d0 | ||
|
0ac68ff225 |
|
@ -167,7 +167,7 @@ class NiconicoChannelPlusIE(NiconicoChannelPlusBaseIE):
|
|||
headers={'Content-Type': 'application/json'},
|
||||
query={
|
||||
'sort_direction': 'asc',
|
||||
'limit': traverse_obj(self._configuration_arg('max_comments', [120]), (0, )),
|
||||
'limit': int_or_none(self._configuration_arg('max_comments', [''])[0]) or 120,
|
||||
},
|
||||
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.to_screen(f'{content_code}: video_type={video_type}, live_status={live_status}')
|
||||
self.write_debug(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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user