iglob, Re: Log Error and hung freevo

A Mennucc <[email protected]>
Newsgroups gmane.comp.video.freevo.devel
Message-ID <[email protected]>
BTW, current kaa needs python 2.5, so there is no need for an internal 
version of iglob. See attachment

a.

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge

_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel
dvd-iglob.diff (text/x-diff, 960 B)
Index: src/disc/dvd.py
===================================================================
--- src/disc/dvd.py	(revisione 4046)
+++ src/disc/dvd.py	(copia locale)
@@ -158,14 +158,8 @@
 
 
     def parseDVDdir(self, dirname):
-        def iglob(path, ifile):
-            # Case insensitive glob to find video_ts dir/file.  Python 2.5 has
-            # glob.iglob but this doesn't exist in 2.4.
-            file_glob = ''.join([ '[%s%s]' % (c, c.upper()) for c in ifile ])
-            return glob.glob(os.path.join(path, file_glob))
-
-        if True not in [ os.path.isdir(x) for x in iglob(dirname, 'video_ts') ] + \
-                       [ os.path.isfile(x) for x in iglob(dirname, 'video_ts.vob') ]:
+        if True not in [ os.path.isdir(x) for x in glob.iglob(dirname, 'video_ts') ] + \
+                       [ os.path.isfile(x) for x in glob.iglob(dirname, 'video_ts.vob') ]:
             raise core.ParseError()
 
         # OK, try libdvdread
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.