SOURCES: pynapi.py - bugfix for skip if subtitles exist

arekm arekm at pld-linux.org
Sat Jan 17 19:42:59 CET 2009


Author: arekm                        Date: Sat Jan 17 18:42:59 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- bugfix for skip if subtitles exist

---- Files affected:
SOURCES:
   pynapi.py (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SOURCES/pynapi.py
diff -u SOURCES/pynapi.py:1.7 SOURCES/pynapi.py:1.8
--- SOURCES/pynapi.py:1.7	Sat Jan 17 19:40:57 2009
+++ SOURCES/pynapi.py	Sat Jan 17 19:42:53 2009
@@ -91,7 +91,7 @@
     if len(file) > 4:
         vfile = file[:-4] + '.txt'
 
-    if skip and os.path.exists(file):
+    if skip and os.path.exists(vfile):
         continue
 
     print >> sys.stderr, "%s: %d/%d: Processing subtitle for %s" % (prog, i, i_total, file)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/pynapi.py?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list