[packages/pynapi] - rel 2; try to catch cases when pynapi server returns crap

arekm arekm at pld-linux.org
Mon Jan 14 21:22:12 CET 2013


commit 667ca0cc35f9f73ff2795df16c54cbc284ed0c33
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Jan 14 21:22:07 2013 +0100

    - rel 2; try to catch cases when pynapi server returns crap

 pynapi.py   | 2 +-
 pynapi.spec | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pynapi.spec b/pynapi.spec
index fa5491b..282fdaf 100644
--- a/pynapi.spec
+++ b/pynapi.spec
@@ -2,7 +2,7 @@ Summary:	pynapi - Movie Subtitle Downloader
 Summary(pl.UTF-8):	pynapi - narzędzie do ściągania napisów do filmów
 Name:		pynapi
 Version:	0.18
-Release:	1
+Release:	2
 License:	GPL v3+
 Group:		Applications/Multimedia
 Source0:	pynapi.py
diff --git a/pynapi.py b/pynapi.py
index c5c9e21..c99d1e8 100644
--- a/pynapi.py
+++ b/pynapi.py
@@ -138,7 +138,7 @@ def get_subtitle(digest, lang="PL"):
             time.sleep(0.5)
             continue
     
-        if sub.startswith('NPc'):
+        if sub.startswith('NPc') or sub.find('Blad polaczenia z baza danych') != -1:
             raise Exception('Subtitle NOT FOUND')
             
         repeat = 0
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pynapi.git/commitdiff/667ca0cc35f9f73ff2795df16c54cbc284ed0c33



More information about the pld-cvs-commit mailing list