Skip to content

Commit

Permalink
Moderate Update
Browse files Browse the repository at this point in the history
* Fixed critical audio download bug
  • Loading branch information
MrMendelli committed Oct 18, 2024
1 parent f445cd6 commit 850d0df
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 10/17/2024
### Moderate Update
```diff
* Fixed critical audio download bug
```

## 10/15/2024
### Major Update
```diff
Expand Down
13 changes: 7 additions & 6 deletions src/yt-dlp CLI.bat
Original file line number Diff line number Diff line change
Expand Up @@ -308,14 +308,15 @@ if %MediaFormat% equ "opus" goto :Lossy
if %MediaFormat% equ "vorbis" goto :Lossy
if %MediaFormat% equ "wav" goto :Lossless

:Lossy
%ytdlp% --ffmpeg-location=%ffmpeg% --cookies "cookies.txt" %URL% -x --add-metadata --audio-format %MediaFormat% --audio-quality %AudioQuality% -o "%userprofile%\Music\yt-dlp\%DownloadType%"
if %errorlevel% equ 0 (echo. & echo Download completed. & pause & start "" explorer "%userprofile%\Music\yt-dlp" & ren "%userprofile%\Music\yt-dlp\*.vorbis" "*.ogg" > nul) else (echo. & pause)
goto :MainMenu

:Lossless
%ytdlp% --ffmpeg-location=%ffmpeg% --cookies "cookies.txt" %URL% -x --add-metadata --audio-format %MediaFormat% -o "%userprofile%\Music\yt-dlp\%DownloadType%"
if %errorlevel% equ 0 (echo. & echo Download completed. & pause & start "" explorer "%userprofile%\Music\yt-dlp" > nul) else (echo. & pause)
if %errorlevel% equ 0 (echo. & echo Download completed. & pause & start "" explorer "%userprofile%\Music\yt-dlp") else (echo. & pause)
goto :MainMenu

:Lossy
%ytdlp% --ffmpeg-location=%ffmpeg% --cookies "cookies.txt" %URL% -x --add-metadata --audio-format %MediaFormat% --audio-quality %AudioQuality% -o "%userprofile%\Music\yt-dlp\%DownloadType%"
ren "%userprofile%\Music\yt-dlp\*.vorbis" "*.ogg"
if %errorlevel% equ 0 (echo. & echo Download completed. & pause & start "" explorer "%userprofile%\Music\yt-dlp") else (echo. & pause)
goto :MainMenu

:DownloadIcon
Expand Down

0 comments on commit 850d0df

Please sign in to comment.