]> git.pld-linux.org Git - packages/pynapi.git/commitdiff
- rel 2; try to catch cases when pynapi server returns crap auto/th/pynapi-0.18-2
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 14 Jan 2013 20:22:07 +0000 (21:22 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 14 Jan 2013 20:22:07 +0000 (21:22 +0100)
pynapi.py
pynapi.spec

index c5c9e21fca62f10169c39d34f79134c3419b8b13..c99d1e815af89e35eb90e5df5b86e923893d508e 100644 (file)
--- 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
index fa5491bdcceedee38e20a52628d38de07bc5c8c9..282fdaf551eedde270c1dd920a1ade162acb4d88 100644 (file)
@@ -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
This page took 0.085839 seconds and 4 git commands to generate.