mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-05-23 07:42:42 +00:00
fix indent
This commit is contained in:
parent
6500f0c7ac
commit
f91b84fc62
@ -178,7 +178,8 @@ class MixchMovieIE(InfoExtractor):
|
|||||||
# Comments are organized in a json chain, connected with 'nextCursor' property.
|
# Comments are organized in a json chain, connected with 'nextCursor' property.
|
||||||
# There are up to 20 comments in one json file.
|
# There are up to 20 comments in one json file.
|
||||||
while has_next:
|
while has_next:
|
||||||
yield from traverse_obj(data,
|
yield from traverse_obj(
|
||||||
|
data,
|
||||||
('comments', lambda k, v: v['comment'], {
|
('comments', lambda k, v: v['comment'], {
|
||||||
'author': ('user_name', {str_or_none}),
|
'author': ('user_name', {str_or_none}),
|
||||||
'author_id': ('user_id', {int_or_none}),
|
'author_id': ('user_id', {int_or_none}),
|
||||||
@ -197,7 +198,8 @@ class MixchMovieIE(InfoExtractor):
|
|||||||
has_next = False
|
has_next = False
|
||||||
|
|
||||||
if has_next:
|
if has_next:
|
||||||
data = self._download_json(f'https://mixch.tv/api-web/movies/{video_id}/comments?cursor={next_cursor}&limit=20',
|
data = self._download_json(
|
||||||
|
f'https://mixch.tv/api-web/movies/{video_id}/comments?cursor={next_cursor}&limit=20',
|
||||||
(video_id, next_cursor),
|
(video_id, next_cursor),
|
||||||
note='Downloading comments', errnote='Failed to download comments')
|
note='Downloading comments', errnote='Failed to download comments')
|
||||||
# Limit comments download times to avoid server forbidding.
|
# Limit comments download times to avoid server forbidding.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user