Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Key Moments with the local API #6171

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

absidue
Copy link
Member

@absidue absidue commented Nov 15, 2024

Add support for Key Moments with the local API

Pull Request Type

  • Feature Implementation

Related issue

closes #4237

Description

Key Moments on YouTube videos are chapters but auto-generated by YouTube instead of written in the description by the uploader. This pull request adds support for them with the local API.

Screenshots

key-moments

Testing

Example video from the feature request: https://www.youtube.com/watch?v=90ihiTwJPCc

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 2fd0170

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) November 15, 2024 22:59
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Nov 15, 2024
@ChunkyProgrammer
Copy link
Member

Are there ever any cases where chapters and key moments exist for a video? i'm guessing not

@absidue
Copy link
Member Author

absidue commented Nov 18, 2024

I'm not sure, although if it were to happen, this code would only use the chapters that the uploader added. chapters -> key moments -> try extracting from the description with regex -> empty array.

@FreeTubeBot FreeTubeBot merged commit 7bee071 into FreeTubeApp:development Nov 18, 2024
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Nov 18, 2024
@absidue absidue deleted the key-moments branch November 18, 2024 19:26
Soham456 pushed a commit to Soham456/FreeTube that referenced this pull request Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Show "Key Moments" (very similar to Chapters)
5 participants