[packages/pynapi] - rel 7; set default socket timeout to 180s

arekm arekm at pld-linux.org
Tue Jul 15 20:39:24 CEST 2014


commit 03a8e2fc3235d82936bd5ed4878363c584fe23aa
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Jul 15 20:39:21 2014 +0200

    - rel 7; set default socket timeout to 180s

 pynapi.py   | 3 +++
 pynapi.spec | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/pynapi.spec b/pynapi.spec
index 5e84d94..3579fef 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:	6
+Release:	7
 License:	GPL v3+
 Group:		Applications/Multimedia
 Source0:	pynapi.py
diff --git a/pynapi.py b/pynapi.py
index 91a95c8..7ca5676 100644
--- 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):
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pynapi.git/commitdiff/03a8e2fc3235d82936bd5ed4878363c584fe23aa



More information about the pld-cvs-commit mailing list