summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config4
-rw-r--r--pyLoadCore.py6
2 files changed, 7 insertions, 3 deletions
diff --git a/config b/config
index 1b86250d7..1c3179af4 100644
--- a/config
+++ b/config
@@ -4,8 +4,8 @@ language: de
download_folder = Downloads
link_file = links.txt
failed_file = failed_links.txt
-use_reconnect = False
-reconnect_method = reconnect
+use_reconnect = True
+reconnect_method = ./reconnect.sh
max_downloads = 3
[updates]
search_updates = True
diff --git a/pyLoadCore.py b/pyLoadCore.py
index c9f9c0ccc..36e06c1e4 100644
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -17,7 +17,7 @@
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
###
-CURRENT_VERSION = '0.0.5'
+CURRENT_VERSION = '0.1.0'
import ConfigParser
import gettext
@@ -62,6 +62,7 @@ class Core(object):
self.init_logger(logging.DEBUG) # logging level
+
self.check_update()
self.logger.info(_("Downloadtime: %s") % self.is_dltime()) # debug only
@@ -121,6 +122,9 @@ class Core(object):
def check_update(self):
"""checks newst version
"""
+ if not self.config['search_updates']:
+ return False
+
newst_version = urllib2.urlopen("http://pyloadupdate.appspot.com/", "version="+CURRENT_VERSION).readline()
if newst_version == "True":
if not self.config['install_updates']: