from sponsorblock import SponsorBlockAPI api = SponsorBlockAPI() def get_and_apply_segments(video_url): segments = api.get_segments(video_url) return segments