To disable Webm video download in yt-dlp

One way not to download videos in webm format is to make a config file for yt-dlp

mkdir -p $HOME/.config/yt-dlp

… and the config file

nano $HOME/.config/yt-dlp/config

… which contenst is

--ignore-errors
# --no-playlist

# Save in ~/Videos
-o ~/Videos/%(title)s.%(ext)s

### jos suomeksi niin laita Videot Videosin tilalle

####-o ~/Videot/%(title)s.%(ext)s

# Prefer 1080p or lower resolutions
-f bestvideo[ext=mp4][width<1280][height<=720]+bestaudio[ext=m4a]/bestvideo[width<1280][height<=720]+bestaudio/best[width<1280][height<=720]/best

... save and quit

Ctrl o
Ctrl x

Read also:Simple YouTube download script