Deleting SRT files after conversion


#1

I have enabled “Extract Subtitles”, which creates the SRT file, but I have also enabled “Add Subtitles”, which I understand puts the subtitles back in the resulting MKV file (for Plex).

But, the SRT file still exists on disk–is there any reason that I can’t or shouldn’t delete it?


(Goose) #2

You can delete it. MCEBuddy keeps it because some folks like to have both. If you want to delete it automatically write a PostCustomCommand in your profile which deletes the SRT file.

See here for more details:


(Dave E) #3

If you wouldn’t mind, could you go into more detail on what might a postcustomcommand deleting the SRT file look like?


(Goose) #4

Here’s one that should work, it invokes cmd.exe and passes a delete command to it to delete a SRT file that lies in the destination directory with the same name as the converted file:

PostCustomCommandPath=C:\Windows\System32\cmd.exe
PostCustomCommandParameters="/c del "%destinationpath%\%convertedfilename%.srt""
PostCustomCommandHangPeriod=60
PostCustomCommandCritical=false
PostCustomCommandUISession=false
PostCustomCommandShowWindow=false
PostCustomCommandExitCodeCheck=false