mov-cli / mov-cli-youtube

A mov-cli v4 plugin for watching youtube.
https://pypi.org/project/mov-cli-youtube/
MIT License
16 stars 1 forks source link

Audio track cannot be selected #17

Closed Neko-22 closed 1 week ago

Neko-22 commented 1 month ago

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 commented 1 month ago

Hey,

Sorry for the late response.

Were you using pytube or yt-dlp?

Neko-22 commented 1 month ago

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

r3tr0ananas commented 1 month ago

This feature can probably be added.

On Wed, Jul 10, 2024 at 01:52, Neko @.***(mailto:On Wed, Jul 10, 2024 at 01:52, Neko < wrote:

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

Neko-22 commented 1 month ago

Thank you so much!

THEGOLDENPRO commented 1 month ago

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

Neko-22 commented 1 month ago

The main one I tried was a Tom Scott video on why audio doesn’t match subtitles. The video was in French while the subtitles were English.On Jul 11, 2024, at 11:09 AM, Goldy @.***> wrote: What video did you try playing, I completely forgot youtube videos could even have different audios.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

THEGOLDENPRO commented 1 month ago

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

THEGOLDENPRO commented 1 month ago

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 commented 1 week ago

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 commented 1 week ago

No worries, a late fix is better than no fix! I also am not surprised that mov-cli doesn't support multiple audio tracks, that's quite a rare feature. Thank you so much!

On Mon, Aug 5, 2024 at 4:28 PM Goldy @.***> wrote:

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 https://github.com/mov-cli/mov-cli/wiki/Configuration#subtitles.

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.

— Reply to this email directly, view it on GitHub https://github.com/mov-cli/mov-cli-youtube/issues/17#issuecomment-2269950366, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX23VAQWOQS2OJOVGZCUX73ZP7VBFAVCNFSM6AAAAABKKIQ4ICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRZHE2TAMZWGY . You are receiving this because you authored the thread.Message ID: @.***>

-- Cats are the best, Cormac