Hi Andru,

On 2/24/21 14:01, Bemis, Andru wrote:
> A small bit of background:
[snipped for space considerations...]
>
> Now for the question: Is there any way to prevent RDAdmin's dropbox
> configuration from deleting Evergreen cuts if I check the box "delete
> cuts before importing"? I'd prefer not to have old episodes piling up in
> the library, but I also would like to keep Evergreen episodes readily
> available. Does anyone have a workaround for this?
>
> Thanks for your thoughts!

I wrote a script that can be run from a Rivendell Macro ("RN"), from
cron(8), or as a systemd(8) "timer unit". The script (use --help for
details) can delete any or all cuts that satisfy these criteria:

  - have been previously played
  - have been played longer than <day/time> ago
  - are shorter than a specified duration
  - were imported longer than <day/time> ago

When using this script, you would uncheck the "Delete cuts before
importing" option in the dropbox settings.

Use the --keep-evergreen option to have it do what you seek.

It has a --dry-run option that shows what it *would* do so you can check
it before deleting the cuts.

The script requires two things: /bin/zsh (the Z Shell) and my Z Shell
"library" (zsh-functions) in either /usr/bin or /usr/local/bin

Both the script and the library are at
https://github.com/opensourceradio/ram/tree/master/usr/local/bin Look
for "btd-drop-cuts" and "zsh-functions".

Hope this helps!

   ~David

_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

Reply via email to