Update of /cvsroot/freevo/freevo
In directory sc8-pr-cvs1:/tmp/cvs-serv11602

Modified Files:
        record_config.py 
Log Message:
Fix cache and log locations, also add more comments.


Index: record_config.py
===================================================================
RCS file: /cvsroot/freevo/freevo/record_config.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** record_config.py    11 Jul 2003 00:24:34 -0000      1.5
--- record_config.py    2 Aug 2003 12:50:48 -0000       1.6
***************
*** 1,4 ****
! # This is the config file used by record_server.py.
  
  import plugin
  
--- 1,7 ----
! # This is the config file used by record_server.py.  If you are using
! # record_daemon.py from cron ignore this file.
  
+ # XXX TODO: figure out a better way to deal with this plugin stuff and move 
+ # these config items into freevo_config.py - getting rid of this file.
  import plugin
  
***************
*** 9,27 ****
  DEBUG = 0
  
  # XXX Note:  This VCR_CMD is not used yet, please modify the one in 
  # local_conf.py.  Beware that the recording plugin expects a different format,
  # 3 options instead of 4: %(channel)s, %(seconds)s, and %(filename)s.
  #
  # VCR_CMD = ('/var/media/bin/tvrecord %(channel)s %(seconds)s "%(filename)s"')    
  
! RECORD_SERVER_IP = 'localhost'
! RECORD_SERVER_PORT = 18001
! RECORD_SCHEDULE = '/var/cache/freevo/record_schedule.xml'
! 
! plugin.activate('plugins.generic_record')
! # Use the next line instead if you have an ivtv based card (PVR-250/350)
  # and want freevo to do everthing for you.  TV_SETTINGS must be set up
  # right in your local_conf.py
  # plugin.activate('plugins.ivtv_record')
  
! LOGDIR = '/var/log/freevo'
--- 12,47 ----
  DEBUG = 0
  
+ if os.path.isdir('/var/cache/freevo'):
+     FREEVO_CACHEDIR = '/var/cache/freevo'
+ else:
+     if not os.path.isdir('/var/tmp/freevo/cache'):
+         os.makedirs('/var/tmp/freevo/cache')
+     FREEVO_CACHEDIR = '/var/tmp/freevo/cache'
+ 
+ RECORD_SCHEDULE = '%s/record_schedule.xml' % FREEVO_CACHEDIR
+ RECORD_SERVER_IP = 'localhost'
+ RECORD_SERVER_PORT = 18001
+ 
+ # Config for the generic_record plugin.  To remove comment out the next line.
+ plugin.activate('plugins.generic_record')
+ 
  # XXX Note:  This VCR_CMD is not used yet, please modify the one in 
  # local_conf.py.  Beware that the recording plugin expects a different format,
  # 3 options instead of 4: %(channel)s, %(seconds)s, and %(filename)s.
  #
+ # VCR_CMD is only used by record_server.
  # VCR_CMD = ('/var/media/bin/tvrecord %(channel)s %(seconds)s "%(filename)s"')    
  
! # Config for the ivtv_record plugin.
! # Use this plugin instead if you have an ivtv based card (PVR-250/350)
  # and want freevo to do everthing for you.  TV_SETTINGS must be set up
  # right in your local_conf.py
+ # To activate, uncomment the next line.
  # plugin.activate('plugins.ivtv_record')
  
! if os.path.isdir('/var/log/freevo'):
!     LOGDIR = '/var/log/freevo'
! else:
!     LOGDIR = '/tmp/freevo'
!     if not os.path.isdir(LOGDIR):
!         os.makedirs(LOGDIR)




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to