Skip to content

Commit 560c810

Browse files
committed
Fix base file name
1 parent 19677de commit 560c810

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

MKV-Ripper.cmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ setlocal ENABLEDELAYEDEXPANSION
1212
rem Generic call to FFmpeg
1313
set FFMPEG=call "%~dp0bin\ffmpeg.exe" -hide_banner -i %1
1414

15+
rem Base file name
16+
set BASE=%~dpn1
17+
1518
rem Enumerate video and audio streams, and generate associated output arguments
1619
set OUTPUT=
1720
set i=0
@@ -47,5 +50,5 @@ if "!EXT!" == "" (
4750
echo The %2 %1 codec is currently unsupported. Please submit a PR or issue on GitHub to request support to be added.
4851
exit /b
4952
)
50-
set OUTPUT=!OUTPUT! "%~dpn1-!i!.!EXT!"
53+
set OUTPUT=!OUTPUT! "%BASE%-!i!.!EXT!"
5154
exit /b

0 commit comments

Comments
 (0)