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

Set download links on Watch even if there are no caption links #5916

Conversation

MarmadileManteater
Copy link
Contributor

Set download links on Watch page even if there are no caption links

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Description

The line this.downloadLinks = downloadLinks is only being ran when videos have captions. This PR addresses this by moving this line outside of the result.captions condition.

Screenshots

on a video with no caption tracks:

before: after
image image

Testing

  1. Find a video which has no caption tracks ( ex: https://youtu.be/sVx1mJDeUjY )
  2. Ensure it shows the download links icon button

(you could also test a video with captions to make sure it still shows the download links icon button [ex: https://youtu.be/-lNE26RHH7E ])

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 22, 2024
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) October 22, 2024 11:51
@FreeTubeBot FreeTubeBot merged commit ee8ca70 into FreeTubeApp:development Oct 22, 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 Oct 22, 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.

5 participants