Hello All,
I have finally got off my big fat butt and finished my first freevo plugin.
This plugin will monitor a given HD freespace and delete files froma given
dir when the freespace threshold passed the configured value:
Name: keep_tvdir_clean
Type: DaemonPlugin
File: /usr/lib/python2.3/site-packages/freevo/plugins/keep_tvdir_clean.py
Description:
------------
This Plugin will remove the oldest files and associated 'stuff'
(if the filename is test.avi, then test.* will be removed)
You need to have TV_RECORD_DIR set int you local_config.py
(this is a requirement of recordserver.py anyway)
And TV_REC_DEL_THRESHOLD which is the value in percent which
will always be kept free.
Example:
to keep clean directory /tv_recordings clean:
(in local_conf.py)
TV_RECORD_DIR = '/tv_recordings'
TV_REC_DEL_THRESHOLD = 0.3
Activate with:
plugin.activate('keep_tvdir_clean')
Plugin configuration variables:
-------------------------------
TV_RECORD_DIR: TV Record dir
Default: []
TV_REC_DEL_THRESHOLD: Threshold (in percent) to keep free at poll interval
Default: []
I have uploaded it to the addons page.
PS: need to place is freevo/plugins/.
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users