Jump to content

Is it possible to run a script after each TV recording is done in Freebsd


msgonz
 Share

Recommended Posts

Is there a way that Emby can run a script after each TV recording is done?  

 

Here's what I'm trying to do, running Emby in a Freebsd jail I would like to pass the file name and location of each completed recording to a script. The script would then run comskip to remove the commercials, I'm not running windows so MCEbuddy is out.   

Link to comment
Share on other sites

FYI, Plex has added this in their DVR Beta once the recording is done it runs whatever script you want passing the file name and location, it works very well so far.  It would be great if Emby could do this to.  

Link to comment
Share on other sites

mastrmind11

Great idea.  In the meantime you could just set your recording folder to some temp directory outside your library and write a cron job that runs every X mins looking for files in that dir that were modified more than X minutes ago (which would mean the show has finished recording) ,run comskip on the resulting list of filenames, then move the file to your library.  Set cron to run at an interval longer than most shows you record to avoid processing the same file more than once.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...