Update of /cvsroot/freevo/freevo/helpers In directory sc8-pr-cvs1:/tmp/cvs-serv10038
Modified Files: tvgrep.py Log Message: Fixed a mistake in how the 'schedule' format stuff was being outputted and added '/usr/bin/env python' to the top. duh. Index: tvgrep.py =================================================================== RCS file: /cvsroot/freevo/freevo/helpers/tvgrep.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tvgrep.py 10 Mar 2003 19:32:50 -0000 1.1 --- tvgrep.py 10 Mar 2003 20:29:59 -0000 1.2 *************** *** 1,2 **** --- 1,3 ---- + #!/usr/bin/env python import sys,os,time import string,re *************** *** 48,52 **** # Time stuff ! len_secs = b.stop-b.start temp = len_secs - 1 hour = int(temp/3600) --- 49,58 ---- # Time stuff ! #start_time = time.mktime(time.strptime(b.start, '%Y-%m-%d %H:%M')) ! start_time = time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(b.start)) ! ! ! ! len_secs = int(b.stop-b.start) temp = len_secs - 1 hour = int(temp/3600) *************** *** 72,77 **** 'seconds' : len_secs, 'timecode' : timecode_format } ! ! return config.VCR_CMD % cl_options # Using this is about a million times faster than using XMLTV natively. --- 78,86 ---- 'seconds' : len_secs, 'timecode' : timecode_format } ! ! scheduleline = start_time + "," + str(len_secs) + "," + config.VCR_CMD % cl_options + "," + b.channel_id ! return scheduleline ! ! #return config.VCR_CMD % cl_options # Using this is about a million times faster than using XMLTV natively. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog