Skip to content

Commit

Permalink
pylint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sramshetty committed Dec 3, 2023
1 parent cf88cef commit 4b09b98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion video2dataset/subsamplers/clipping_subsampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def _adjust_ranges_to_keyframes(ranges, keyframes):


def _extract_subtitles(clip_span, meta_clip):
"""Extracts subtitles and groups them by language"""
clip_subtitles = []
s_c, e_c = _get_seconds(clip_span[0]), _get_seconds(clip_span[1])
for lang_id, (lang, subtitles) in enumerate(meta_clip["yt_meta_dict"]["subtitles"].items()):
Expand All @@ -76,7 +77,7 @@ def _extract_subtitles(clip_span, meta_clip):
break

return clip_subtitles


class ClippingSubsampler(Subsampler):
"""
Expand Down

0 comments on commit 4b09b98

Please sign in to comment.