summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-08-02 03:01:05 +0200
committerGravatar spoob <spoob@gmx.de> 2009-08-02 03:01:05 +0200
commit6000178e57dd853b459d1f814e57bbc6c294783a (patch)
treec53456178074507d4ba05a0061ded1e6b2dcf6a9
parentadded captcha for megaupload (diff)
downloadpyload-6000178e57dd853b459d1f814e57bbc6c294783a.tar.xz
automatic update possible
-rw-r--r--config1
-rw-r--r--pyLoadCore.py7
2 files changed, 6 insertions, 2 deletions
diff --git a/config b/config
index acffa9bcc..1b86250d7 100644
--- a/config
+++ b/config
@@ -9,6 +9,7 @@ reconnect_method = reconnect
max_downloads = 3
[updates]
search_updates = True
+install_updates = False
[log]
file_log = True
log_folder = Logs
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 2039eba9f..c9f9c0ccc 100644
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -123,11 +123,14 @@ class Core(object):
"""
newst_version = urllib2.urlopen("http://pyloadupdate.appspot.com/", "version="+CURRENT_VERSION).readline()
if newst_version == "True":
- self.logger.info("New version available, please run Updater")
+ if not self.config['install_updates']:
+ self.logger.info("New version available, please run Updater")
+ else:
+ updater = __import__("pyLoadUpdater")
+ updater.main()
else:
self.logger.info("pyLoad is up-to-date")
-
def check_create(self, check_name, legend, folder=True):
if not exists(check_name):
try: