MCEBuddy Postprocessing Script Help

Just curious if anyone has postprocess script examples for MCEBuddy to remove commercials. My media folder is located on a nas network drive and MCEBuddy is having issues. I used the following reddit post and comments that specifically addressed this issue but I am still getting the “does not exist or MCEBuddy doesn’t have read permissions, skipping” error in my logs.

Here is my script that I can’t get to work due to the same error:
@echo off
C:\Progra~1\MCEBuddy2x\MCEBuddy.UserCLI.exe --command=engine --action=start
timeout /t 2 /nobreak > NUL
set tmpv=%1
set tmpv=%tmpv:~4%
set tmpunc="\DISKSTATION\Media%tmpv%
echo %tmpunc%

C:\Progra~1\MCEBuddy2x\MCEBuddy.UserCLI.exe --command=addfile --action=%tmpunc%
timeout /t 10 /nobreak > NUL
:loop
for /f “delims=” %%o in (‘C:\Progra~1\MCEBuddy2x\MCEBuddy.UserCLI.exe --command=jobstatus --action=%1 --quiet’) do set status=%%o
if %status% == “not present” (
Exit
) else (
timeout /t 2 /nobreak > NUL
goto loop
)

Two things from a quic look at your script:

  1. Are you missing a quote " at the end of the set tmpunc?
  2. In the loop shouldn’t you be checking for --action=%tmpunc instead of %1?

I’ve tried those edits and now the MCEBuddy service just crashes, I had to reinstall and change the script back to what it was before to keep the service running. These network drives and windows are a PITA. Do you have another script I could take a look at?

When I monitor a folder location it will successfully add it to the conversion queue…

Yes they are. Could you just have mcebuddy monitor the folder instead of trying to use post processing?

FYI. I use the same basic script minus the network drives.

Just a quick update, I got it to work finally. The reason it worked for monitoring is because I had to enter my network drive’s credentials. However, when you use a post processing script it put’s the file back in it’s original location and removes the option to enter credentials. After I dug around the settings a bit I found a place to enter my network credentials under Settings -> General Settings -> System Settings.

Never mind. Didn’t see that you got it working.

We were typing at the same time.

Glad it is working.

Hi all,
I’m trying to get a PostPro script working for MCEBuddy. The files are stored on my NAS. Alas, I know nothing of scripting, so this is proving difficult :grimacing:

I have my movies and my tv shows set up on different network shares (note: UNC, not mapped drives). So for example, \0.0.0.0\Movies, \0.0.0.0\Television. Television also has subfolders for US TV, British TV, Australian TV and other TV. I set Plex to record into one of those folders depending on where the TV show originated.

So…is it possible to have a script which works with multiple source locations? I’ve tried to use the script listed above, but once I realised that issue, I got stuck…

Thanks in advance,
Geoff