summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config2
-rw-r--r--module/download_thread.py1
-rw-r--r--module/plugins/RapidshareCom.py7
-rw-r--r--module/plugins/UploadedTo.py2
-rwxr-xr-xpyLoadCore.py3
5 files changed, 9 insertions, 6 deletions
diff --git a/config b/config
index b15a81315..3feb1bb16 100644
--- a/config
+++ b/config
@@ -3,7 +3,7 @@ port = 7270
password = pwhere
[webinterface]
-activated = True
+activated = False
listenaddr = 0.0.0.0
port = 8080
username = User
diff --git a/module/download_thread.py b/module/download_thread.py
index 6a31030ca..539f3e62f 100644
--- a/module/download_thread.py
+++ b/module/download_thread.py
@@ -34,6 +34,7 @@ class Status(object):
self.url = None
self.exists = False
self.waituntil = 0
+ self.plugin = pyfile.modul.__name__
self.want_reconnect = False
self.error = ""
diff --git a/module/plugins/RapidshareCom.py b/module/plugins/RapidshareCom.py
index 7706a7cf7..08b7bdea4 100644
--- a/module/plugins/RapidshareCom.py
+++ b/module/plugins/RapidshareCom.py
@@ -65,7 +65,7 @@ class RapidshareCom(Plugin):
pyfile.status.want_reconnect = self.want_reconnect
thread.wait(self.parent)
- if self.no_slots:
+ while self.no_slots:
self.download_serverhtml()
pyfile.status.url = self.get_file_url()
@@ -141,9 +141,10 @@ class RapidshareCom(Plugin):
except:
if re.search(r"(Currently a lot of users|There are no more download slots)", self.html[1], re.I) != None:
self.time_plus_wait = time() + 130
- self.parent.parent.logger.debug("Rapidshare: No free slots!")
+ self.parent.parent.logger.info("Rapidshare: No free slots!")
self.no_slots = True
return True
+ self.no_slots = False
wait_seconds = re.search(r"var c=(.*);.*", self.html[1]).group(1)
self.time_plus_wait = time() + int(wait_seconds) + 5
@@ -203,7 +204,7 @@ class RapidshareCom(Plugin):
def check_file(self, local_file):
if self.api_data and self.api_data["checksum"]:
h = hashlib.md5()
- f = open(local_file, "rb"):
+ f = open(local_file, "rb")
h.update(f.read())
f.close()
hexd = h.hexdigest()
diff --git a/module/plugins/UploadedTo.py b/module/plugins/UploadedTo.py
index bda0bf899..e00d72f51 100644
--- a/module/plugins/UploadedTo.py
+++ b/module/plugins/UploadedTo.py
@@ -145,7 +145,7 @@ class UploadedTo(Plugin):
def check_file(self, local_file):
if self.api_data and self.api_data["checksum"]:
h = hashlib.sha1()
- f = open(local_file, "rb"):
+ f = open(local_file, "rb")
h.update(f.read())
f.close()
hexd = h.hexdigest()
diff --git a/pyLoadCore.py b/pyLoadCore.py
index a88589926..f913eb493 100755
--- 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.2.2'
+CURRENT_VERSION = '0.2.3.2'
import ConfigParser
import gettext
@@ -260,6 +260,7 @@ class Core(object):
download['percent'] = pyfile.status.percent()
download['status'] = pyfile.status.type
download['wait_until'] = pyfile.status.waituntil
+ download['plugin'] = pyfile.status.plugin
list.append(download)
return list