Last active
January 30, 2026 18:51
-
-
Save cs-deathmatch/11c6d2c4f4d6987e183205071b7d61ee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ::gonna be honest i just ai generated this because who the fuck actually knows how bat files work. language created by the devil | |
| ::requires yt-dlp to be installed and configured in your PATH https://www.java.com/en/download/help/path.html | |
| ::works with playlists or individual songs | |
| ::downloads in the highest possible quality (.opus), and bakes the thumbnail in, cropped to 1:1. also fills in the proper metadata | |
| ::and cuts out any non-music with sponsorblock | |
| ::only can do so much though, if the upload had bad metadata (thumbnail that doesn't look good cropped, wrong artist, etc), | |
| ::you'll need to add that stuff manually. i like mp3tag | |
| ::doesn't specify an output folder, it'll go to your user folder. otherwise, add a config.txt to C:\Users\YOU\AppData\Roaming\yt-dlp | |
| ::i like -o 'C:\Users\Lise\Videos\yt-dlp\%(title)s.%(ext)s' but you can really do whatever | |
| ::if you'd rather mp3, change line 26 to mp3 from opus | |
| @echo off | |
| setlocal EnableDelayedExpansion | |
| :START | |
| echo. | |
| set /p URL=Enter URL: | |
| if "%URL%"=="" goto START | |
| echo. | |
| echo Downloading... | |
| echo. | |
| yt-dlp ^ | |
| -f bestaudio/best ^ | |
| --extract-audio ^ | |
| --audio-format opus ^ | |
| --audio-quality 4 ^ | |
| --add-metadata ^ | |
| --xattrs ^ | |
| --embed-thumbnail ^ | |
| --convert-thumbnails png ^ | |
| --ppa "ThumbnailsConvertor:-vf crop=ih:ih" ^ | |
| --sponsorblock-remove music_offtopic ^ | |
| "%URL%" | |
| echo. | |
| echo Cleaning up leftover images | |
| del *.png *.webp 2>nul | |
| echo. | |
| choice /M "Download more" | |
| if errorlevel 2 goto END | |
| goto START | |
| :END | |
| echo. | |
| echo Goodbye! | |
| pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment