mysql -uroot -pMediaPortal mptvdb -e "update `recording` set `fileName` = '<D:\\Recording\\Server\\filename.ts>' where `fileName` = '<D:\\Recording\\filename.ts>'"
That looks clever. It might be useful to run the script as a scheduled task though so it can pick up recordings more than x days old as Tommy requested, rather than running it every time a new recording is made. It wouldn't be difficult to look at the endTime field to determine how old a recording is.I just wanted to report that I investigated the MP MySQL database and consulted google and found out the needed SQL statement.
From a batch file it can be called by the follwing command:
(double backslashes are needed)Code:mysql -uroot -pMediaPortal mptvdb -e "update `recording` set `fileName` = '<D:\\Recording\\Server\\filename.ts>' where `fileName` = '<D:\\Recording\\filename.ts>'"
So far it works fine in my configuration.
If anyone needs it, I can post the whole batch file called by ComSkipLauncher in my MediaPortal.
My MP also doesn't run 24/7 but is configured to fall into S3 a few minutes after a recording. This is enough time to move the recording files over the network.It is probably fine if you have a server running 24/7, but my HTPC is set to sleep when idle and this seems to mess MCE Buddy up a bit. Would be great if there was a specific MP plugin to do what MCE Buddy tries to do.
This sounds easily possible as well. Running a scheduled task checking the modify time or the timestamp from the recording filename. But it sounded as if Tommy also just got stuck with the SQL part.It might be useful to run the script as a scheduled task though so it can pick up recordings more than x days old as Tommy requested, rather than running it every time a new recording is made. It wouldn't be difficult to look at the endTime field to determine how old a recording is.
forfiles /d -14 /m *.ts /p D:\Recordings /c "cmd /c moveTS.cmd @path"