Skip to content

Conversation

@absidue
Copy link
Member

@absidue absidue commented Oct 26, 2024

Invidious API: Add support for auto-dubbed audio tracks

Pull Request Type

  • Bugfix
  • Feature Implementation

Related issue

LuanRT/YouTube.js#786

Description

YouTube has added a feature for uploaders to tell YouTube to automatically generate dubbed audio tracks for their videos. Support for the local API is handled in the linked YouTube.js pull request, this pull request implements it for the Invidious backend, as we handle multiple audio tracks support for Invidious in the FreeTube code (because Invidious doesn't support them itself yet).

Testing

Check that the player selects the original audio track by default and that you can use some of the other audio tracks.
Test video: https://youtu.be/snZ9w5xc_ic (thanks to the users in the Invidious Matrix chat for mentioning a channel that has those types of audio tracks)

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: eaef9a0

@absidue absidue marked this pull request as ready for review October 28, 2024 18:29
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 28, 2024
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) October 28, 2024 18:29
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isnt this labeling a bit weird? Also it doesnt look to be sorted a-z?

VirtualBoxVM_csM09iqsJ6.mp4

@absidue
Copy link
Member Author

absidue commented Oct 28, 2024

Pretty sure we've never done any sorting on the audio tracks on either API, we just display them in the order that they came in the API response.

As for the labels I can force it to always use the language (region) format for the labels that we create for the Invidious API, so it matches the labels for the local API that are returned by YouTube.

@efb4f5ff-1298-471a-8973-3d47447115dc

Pretty sure we've never done any sorting on the audio tracks on either API, we just display them in the order that they came in the API response.

Ah okay good to know. Please disregard my comment.

As for the labels I can force it to always use the language (region) format for the labels that we create for the Invidious API, so it matches the labels for the local API that are returned by YouTube.

Yes lets do that for the sake of uniformity

@absidue
Copy link
Member Author

absidue commented Oct 28, 2024

Updated the display names to always be in the language (region) format.

@FreeTubeBot FreeTubeBot merged commit 2ef30ef into FreeTubeApp:development Oct 29, 2024
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 29, 2024
@absidue absidue deleted the auto-dubbed-audio branch October 29, 2024 06:41
Soham456 pushed a commit to Soham456/FreeTube that referenced this pull request Dec 5, 2024
…5943)

* Invidious API: Add support for auto-dubbed audio tracks

* Use the standard display name format
@VaelophisNyx
Copy link

Is there a timeframe we could expect the update with this to be out by?

@absidue
Copy link
Member Author

absidue commented Dec 9, 2024

@VaelophisNyx No eta

SuperAKWA pushed a commit to SuperAKWA/FreeTube that referenced this pull request Jan 24, 2025
…5943)

* Invidious API: Add support for auto-dubbed audio tracks

* Use the standard display name format
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.

6 participants