]> git.pld-linux.org Git - packages/pynapi.git/commitdiff
- rel 3; downloaded files that have less than 20 lines are considered to be error...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 13 Feb 2013 19:06:10 +0000 (20:06 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 13 Feb 2013 19:06:10 +0000 (20:06 +0100)
pynapi.py
pynapi.spec

index c99d1e815af89e35eb90e5df5b86e923893d508e..459118f87e50feeb342eb06dd3f77aab843ba103 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') or sub.find('Blad polaczenia z baza danych') != -1:
+        if len(sub.split('\n')) < 20:
             raise Exception('Subtitle NOT FOUND')
             
         repeat = 0
index 282fdaf551eedde270c1dd920a1ade162acb4d88..8c55f4e7f61effd7d0db8135bcce447d36daf811 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:       2
+Release:       3
 License:       GPL v3+
 Group:         Applications/Multimedia
 Source0:       pynapi.py
This page took 0.099402 seconds and 4 git commands to generate.