]> git.pld-linux.org Git - packages/pynapi.git/commitdiff
- rel 7; set default socket timeout to 180s auto/th/pynapi-0.18-7
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 15 Jul 2014 18:39:21 +0000 (20:39 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 15 Jul 2014 18:39:21 +0000 (20:39 +0200)
pynapi.py
pynapi.spec

index 91a95c8dba6b32548f6ab29778763b062c29f1e5..7ca5676396fae5f66531e1215c326f2a4d598946 100644 (file)
--- a/pynapi.py
+++ b/pynapi.py
@@ -26,6 +26,7 @@ import urllib2
 import time
 import os
 import getopt
+import socket
 
 try:
     from hashlib import md5 as md5
@@ -202,6 +203,8 @@ def main(argv=sys.argv):
 
     print >> sys.stderr, "%s: Subtitles language `%s'. Finding video files..." % (prog, lang)
 
+    socket.setdefaulttimeout(180)
+
     files = []
     for arg in args:
         if os.path.isdir(arg):
index 5e84d947d32b284931b7cf3311a39c04996f1e3a..3579fef63b5e2b8b9946728999e20a9aa9e76879 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:       6
+Release:       7
 License:       GPL v3+
 Group:         Applications/Multimedia
 Source0:       pynapi.py
This page took 0.03935 seconds and 4 git commands to generate.