Update of /cvsroot/freevo/freevo/src/helpers
In directory sc8-pr-cvs1:/tmp/cvs-serv19530
Modified Files:
recordserver.py
Log Message:
Write an FXD file with some of the XMLTV info for recorded programs. I just
wrote this and it's fairly simple, but please make sure it works on your end.
I plan to remove the hardcoded stuff ASAP, but I wanted to get it out there
for people to try.
Index: recordserver.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/helpers/recordserver.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** recordserver.py 30 Nov 2003 16:30:58 -0000 1.20
--- recordserver.py 8 Jan 2004 17:38:59 -0000 1.21
***************
*** 7,10 ****
--- 7,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.21 2004/01/08 17:38:59 outlyer
+ # Write an FXD file with some of the XMLTV info for recorded programs. I just
+ # wrote this and it's fairly simple, but please make sure it works on your end.
+ # I plan to remove the hardcoded stuff ASAP, but I wanted to get it out there
+ # for people to try.
+ #
# Revision 1.20 2003/11/30 16:30:58 rshortt
# Convert some tv variables to new format (TV_).
***************
*** 791,794 ****
--- 797,816 ----
+ def create_fxd(self,rec_prog):
+ from util.fxdimdb import FxdImdb, makeVideo
+ fxd = FxdImdb()
+ fxd.setFxdFile(config.TV_RECORD_DIR + '/' + rec_prog.filename)
+ video = makeVideo('file', 'f1', os.path.basename(rec_prog.filename) +
'.mpeg')
+ fxd.setVideo(video)
+ fxd.info['tagline'] = rec_prog.sub_title
+ fxd.info['plot'] = rec_prog.desc
+ fxd.info['runtime'] = None
+ fxd.info['year'] = time.strftime('%m-%d %I:%M',
time.localtime(rec_prog.start))
+ fxd.title = rec_prog.title
+ fxd.writeFxd()
+ # Maybe we should call util.videothumb.snapshot to make a snapshot too, but
+ # we'd have to do it after a few minutes of recording
+
+
def startMinuteCheck(self):
next_minute = (int(time.time()/60) * 60 + 60) - int(time.time())
***************
*** 803,806 ****
--- 825,829 ----
self.record_app = plugin.getbyname('RECORD')
self.record_app.Record(rec_prog)
+ self.create_fxd(rec_prog)
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog