Update of /cvsroot/freevo/freevo/src/helpers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23067/src/helpers
Modified Files:
tv_grab.py
Log Message:
Changes to stop two processes tripping over the creation of the epg pickle file.
Index: tv_grab.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/helpers/tv_grab.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** tv_grab.py 20 Oct 2003 00:32:11 -0000 1.4
--- tv_grab.py 16 Mar 2004 01:04:18 -0000 1.5
***************
*** 12,15 ****
--- 12,18 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.5 2004/03/16 01:04:18 rshortt
+ # Changes to stop two processes tripping over the creation of the epg pickle file.
+ #
# Revision 1.4 2003/10/20 00:32:11 rshortt
# Placed most of the work into functions and added a check for '__main__' for
***************
*** 83,103 ****
if os.path.exists(xmltvtmp):
! shutil.copyfile(xmltvtmp, config.XMLTV_FILE)
! os.unlink(xmltvtmp)
! def sort():
! if os.path.isfile(config.XMLTV_SORT):
! print 'Sorting listings.'
! xmltvtmp = '/tmp/TV.xml.tmp'
! os.system('%s --output %s %s' % ( config.XMLTV_SORT,
! xmltvtmp,
! config.XMLTV_FILE ))
! if os.path.exists(xmltvtmp):
! shutil.copyfile(xmltvtmp, config.XMLTV_FILE)
! os.unlink(xmltvtmp)
! else:
! print 'Not configured to use tv_sort, skipping.'
--- 86,105 ----
if os.path.exists(xmltvtmp):
! if os.path.isfile(config.XMLTV_SORT):
! print 'Sorting listings.'
! os.system('%s --output %s %s' % ( config.XMLTV_SORT,
! xmltvtmp+'.1',
! config.XMLTV_FILE ))
+ shutil.copyfile(xmltvtmp+'.1', xmltvtmp)
+ os.unlink(xmltvtmp+'.1')
! else:
! print 'Not configured to use tv_sort, skipping.'
! print 'caching data, this may take a while'
!
! import tv.epg_xmltv
! tv.epg_xmltv.get_guide(XMLTV_FILE=xmltvtmp)
***************
*** 125,134 ****
grab()
- sort()
-
- print 'caching data, this may take a while'
-
- import tv.epg_xmltv
- tv.epg_xmltv.get_guide()
import tv.record_client as rc
--- 127,130 ----
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog