Hi All!
So along with my other post I’m changing how I record my shows - I’m moving that to a local drive and then I’d like to copy them to a WD MyCloud EX 4100.
So I’ve made changes to by script but the copy is taking place before Plex is moving the processed file to it’s local final destination.
Here’s my script and I’ve bolded the changes
@echo off
xcopy %1 K:\TVShows_Archive2
C:\Progra~1\MCEBuddy2x\MCEBuddy.UserCLI.exe --command=engine --action=start
timeout /t 2 /nobreak > NUL
C:\Progra~1\MCEBuddy2x\MCEBuddy.UserCLI.exe --command=addfile --action=%1
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” (
timeout /t 30
xcopy D:\TVShows_Temp \\wdmycloudex4100\plex\tvshows /s /y >>d:\plex_mce_log.txt
Exit
) else (
timeout /t 2 /nobreak > NUL
goto loop
)
I tried using robocopy but it kept failing with an access denied but I did get xcopy to work - that’s the decision on why I used that - I also have a script that is removing the local directory after it’s copied but that isn’t in the script above because of the issue that I am hitting.
and that issue is Plex isn’t moving the file into it’s final local location. You can see below that other shows that completed and moved are in their correct location. However the first is still in the …grab folder and gets moved after the copy takes place. I’m only recording the shows for a few minutes before canceling them so the files aren’t that large yet.
D:\TVShows_Temp.grab\9a9c09cecfebab312e4c92b94ac81831dd8c6250\WQED Mini Docs (2016) - 2019-03-31 12 00 00 - Pittsburgh Women in World War II.mkv
D:\TVShows_Temp\2 Broke Girls (2011)\Season 02\2 Broke Girls (2011) - S02E15 - And the Psychic Shakedown.mkv
D:\TVShows_Temp\AM Joy (2016)\Season 2019\AM Joy (2016) - S2019E26 - Episode 26.ts
D:\TVShows_Temp\Angry Birds Toons (2013)\Season 02\Angry Birds Toons (2013) - S02E08 - The Miracle of Life.mkv
D:\TVShows_Temp\Channel 11 News at 6PM Saturday (2018)\Season 2019\Channel 11 News at 6PM Saturday (2018) - 2019-03-30 18 00 00 - Episode 03-30.mkv
D:\TVShows_Temp\FIG World Cup Gymnastics (2018)\Season 2019\FIG World Cup Gymnastics (2018) - 2019-03-26 00 00 00 - Women’s Individual All-Around.mkv
I based this off of this link https://forums.plex.tv/t/plex-dvr-mcebuddy-script-not-converting-recordings/208751
and @johnm_ColaSC comment on putting in the pause and copy command.
or is it that Plex doesn’t move the file until after the Exit in the batch?
anyone else doing anything like this and care to share their solution? I just want to record and post process on a local hard drive and then move it to my NAS.
Thanks!
Eric