Update of /cvsroot/freevo/freevo/src/helpers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22624/src/helpers
Modified Files:
tv_grab.py
Log Message:
Make tv_grab helper work again, now with pyepg.
Index: tv_grab.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/helpers/tv_grab.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** tv_grab.py 10 Jul 2004 12:33:39 -0000 1.7
--- tv_grab.py 14 Aug 2004 01:18:07 -0000 1.8
***************
*** 12,15 ****
--- 12,18 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.8 2004/08/14 01:18:07 rshortt
+ # Make tv_grab helper work again, now with pyepg.
+ #
# Revision 1.7 2004/07/10 12:33:39 dischi
# header cleanup
***************
*** 45,48 ****
--- 48,53 ----
import config
+ import pyepg
+
def usage():
***************
*** 75,80 ****
xmltvtmp ))
! shutil.copyfile(xmltvtmp+'.1', xmltvtmp)
! os.unlink(xmltvtmp+'.1')
else:
--- 80,84 ----
xmltvtmp ))
! shutil.move(xmltvtmp+'.1', xmltvtmp)
else:
***************
*** 83,88 ****
print 'caching data, this may take a while'
! import tv.epg_xmltv
! tv.epg_xmltv.get_guide(XMLTV_FILE=xmltvtmp)
--- 87,92 ----
print 'caching data, this may take a while'
! epg = pyepg.load(xmltvtmp, os.path.join(config.FREEVO_CACHEDIR, 'epg'))
! shutil.move(xmltvtmp, config.XMLTV_FILE)
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog