.grab post processing error

Server Version#: 1.15.5.994

I have a I have a post-processing script that strips out the weird subtitles in my recorded .ts files as an SRT (using ccextractor) and then repackages the .ts into an mkv with the subtitles embedded.
Interestingly, the Plex post-processing that happens on the files in the .grab folder notices the .srt file and tries to move it along with the video file to the final directory.
This has been working well for many months.
Recently (new Server version maybe?) I discovered that the SRT files are no longer making it to the final destination.
The logs get overwritten so fast that finding examples can be hard, so I queued a manual recording:

May 25, 2019 16:30:13.663 [9972] DEBUG - DVR:Recorder: Postprocessing script ‘E:\ts_modder.bat’ seems to have renamed output file ‘“E:\SageTV.grab\17a774c49e4d89f18b580ea0b9aed3129df80cb3\This Old House (1980) - S39E17 - Brookline Mid-century Modern House Beam Me Up Tommy.ts”’ to ‘“E:\SageTV.grab\17a774c49e4d89f18b580ea0b9aed3129df80cb3\This Old House (1980) - S39E17 - Brookline Mid-century Modern House Beam Me Up Tommy.mkv”’
May 25, 2019 16:30:13.663 [9972] DEBUG - DVR:Recorder: Postprocessing script ‘E:\ts_modder.bat’ was successful in 12.4 seconds. Nicely done.
May 25, 2019 16:30:13.664 [9972] DEBUG - DVR:Grabber: Scheduling ‘This Old House - E17 - Brookline Mid-century Modern House: Beam Me Up Tommy’ for assimilation.

This is cool. I wondered how that worked.

May 25, 2019 16:30:13.838 [5472] DEBUG - DVR:Grabber: Moving “E:\SageTV.grab\17a774c49e4d89f18b580ea0b9aed3129df80cb3\This Old House (1980) - S39E17 - Brookline Mid-century Modern House Beam Me Up Tommy.srt” to “E:\SageTV\This Old House (1980)\Season 39\This Old House (1980) - S39E17 - Brookline Mid-century Modern House Beam Me Up Tommy.mkv\This Old House (1980) - S39E17 - Brookline Mid-century Modern House Beam Me Up Tommy.srt”
May 25, 2019 16:30:13.946 [5472] ERROR - Couldn’t rename file “E:\SageTV.grab\17a774c49e4d89f18b580ea0b9aed3129df80cb3\This Old House (1980) - S39E17 - Brookline Mid-century Modern House Beam Me Up Tommy.srt” to “E:\SageTV\This Old House (1980)\Season 39\This Old House (1980) - S39E17 - Brookline Mid-century Modern House Beam Me Up Tommy.mkv\This Old House (1980) - S39E17 - Brookline Mid-century Modern House Beam Me Up Tommy.srt”: The parameter is incorrect

Uh oh. That won’t work. Its trying to move the .srt into the .mkv file?

This bug must’ve been introduced recently as nothing else has changed.

No response at all?
I found a bug, determined it was introduced recently and traced it to the logs. Fix should be simple, but you guys will probably want to look at the diff that created it to see if it caused any other errors.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.