Kenshin9977 / video-dl

A GUI for yt-dlp that aims to simplify its usage.
MIT License
32 stars 7 forks source link

Rudimentary Support for Audio Only Codec Selection #13

Closed kircat-concatenation closed 1 year ago

kircat-concatenation commented 2 years ago

What?

Rudimentary Support for Audio Only Codec Selection

Why?

I prefer the flexibility of selecting my own audio codec, rather than relying on MP3.

How?

I created an additional combo box in gui.py for audio-only codec selection (referred to by the key "TargetACodec"), and passed the "TargetACodec" value to the audio_only post processor in _gen_query function in ytdlp_handler.py

Testing?

I tested the codec selection functionality with both singular youtube videos, as well as several youtube playlists with success.

Screenshots (optional)

gui_addition Screenshot of the GUI Addition

Anything Else

The audio-only codec selection box is currently enabled by default when ideally it should only be enabled when the audio-only checkbox is selected. However, I think this is a good starter implementation for a valuable feature for the end-user.