SOURCES: pynapi.py Catch more errors.
arekm
arekm at pld-linux.org
Fri Feb 6 21:58:49 CET 2009
Author: arekm Date: Fri Feb 6 20:58:49 2009 GMT
Module: SOURCES Tag: HEAD
---- Log message:
Catch more errors.
---- Files affected:
SOURCES:
pynapi.py (1.16 -> 1.17)
---- Diffs:
================================================================
Index: SOURCES/pynapi.py
diff -u SOURCES/pynapi.py:1.16 SOURCES/pynapi.py:1.17
--- SOURCES/pynapi.py:1.16 Fri Feb 6 21:51:44 2009
+++ SOURCES/pynapi.py Fri Feb 6 21:58:43 2009
@@ -138,8 +138,7 @@
print >> sys.stderr, "%s: %d/%d: Fetching subtitle failed, HTTP code: %s" % (prog, i, i_total, str(http_code))
continue
- # XXX: is this standard way for napiproject to signalize error?
- if sub in ('NPc0', 'NPc1'):
+ if sub.startswith('NPc'):
print >> sys.stderr, "%s: %d/%d: Subtitle NOT FOUND" % (prog, i, i_total)
continue
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/pynapi.py?r1=1.16&r2=1.17&f=u
More information about the pld-cvs-commit
mailing list