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

Audio track cannot be selected #17

Closed
Neko-22 opened this issue Jul 3, 2024 · 10 comments · Fixed by #19
Closed

Audio track cannot be selected #17

Neko-22 opened this issue Jul 3, 2024 · 10 comments · Fixed by #19

Comments

@Neko-22
Copy link

Neko-22 commented Jul 3, 2024

When trying to watch a video with multiple audio tracks, mov-cli-youtube only seems to grab one random audio track without any ability to swap between tracks. Is there any way that a feature to grab all available audio tracks can be implemented?

@r3tr0ananas
Copy link
Member

Hey,

Sorry for the late response.

Were you using pytube or yt-dlp?

@Neko-22
Copy link
Author

Neko-22 commented Jul 9, 2024

yt-dlp. Thanks for a reply at all, I don't mind waiting a bit if it means I can get assistance!

@r3tr0ananas
Copy link
Member

r3tr0ananas commented Jul 9, 2024 via email

@Neko-22
Copy link
Author

Neko-22 commented Jul 10, 2024

Thank you so much!

@THEGOLDENPRO
Copy link
Member

What video did you try playing, I completely forgot youtube videos could even have different audios.

@Neko-22
Copy link
Author

Neko-22 commented Jul 11, 2024 via email

@THEGOLDENPRO
Copy link
Member

Alright thanks I was able to reproduce that. Will look into it soon. 👍

@THEGOLDENPRO
Copy link
Member

However, for the time being you can use pytube as an alternative (make sure it's up to date though, pip install pytubefix -U):

mov-cli -s youtube.pytube {query}

@THEGOLDENPRO THEGOLDENPRO linked a pull request Aug 5, 2024 that will close this issue
@THEGOLDENPRO
Copy link
Member

First I would like to apologize for the very very late completion of this issue.

This issue has been fixed in 1.3.4 which will be released soon, however the fix is partial; if a video has more than one audio track it won't display all of those audio tracks but instead it will attempt to grab the first audio track relevant to your current set language.

The reason of this implementation is because currently mov-cli doesn't support multiple audio track urls. Hopefully one day I find the time to add support for that in the main code-base ideally without bringing breaking changes. Once I do I'll change this implementation to return all the audio tracks with preferred language as priority.

Thanks for reporting this issue.

@Neko-22
Copy link
Author

Neko-22 commented Aug 6, 2024 via email

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 a pull request may close this issue.

3 participants