summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/NetloadIn.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-14 11:07:54 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-14 11:07:54 +0100
commite65d19ee3a1e435bf2896ed829e5581eeef92dd2 (patch)
treecf5bb073899205a2f00ddeca8df8b9f3944ea835 /module/plugins/hoster/NetloadIn.py
parent[HotFolder] Missing exception (diff)
downloadpyload-e65d19ee3a1e435bf2896ed829e5581eeef92dd2.tar.xz
Import cleanup for datetime and time modules
Diffstat (limited to 'module/plugins/hoster/NetloadIn.py')
-rw-r--r--module/plugins/hoster/NetloadIn.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hoster/NetloadIn.py b/module/plugins/hoster/NetloadIn.py
index 16728ad43..0ff3c25d3 100644
--- a/module/plugins/hoster/NetloadIn.py
+++ b/module/plugins/hoster/NetloadIn.py
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
import re
+import time
from urlparse import urljoin
-from time import time
from module.network.RequestFactory import getURL
from module.plugins.Hoster import Hoster
@@ -161,7 +161,7 @@ class NetloadIn(Hoster):
def final_wait(self, page):
- wait_time = self.get_wait_time(page)
+ wait_time = self.get_wait_time.time(page)
self.setWait(wait_time)
@@ -175,7 +175,7 @@ class NetloadIn(Hoster):
def check_free_wait(self, page):
if ">An access request has been made from IP address <" in page:
self.wantReconnect = True
- self.setWait(self.get_wait_time(page) or 30)
+ self.setWait(self.get_wait_time.time(page) or 30)
self.wait()
return True
else:
@@ -207,7 +207,7 @@ class NetloadIn(Hoster):
for i in xrange(5):
if not page:
page = self.load(self.url)
- t = time() + 30
+ t = time.time() + 30
if "/share/templates/download_hddcrash.tpl" in page:
self.logError(_("Netload HDD Crash"))
@@ -281,7 +281,7 @@ class NetloadIn(Hoster):
return None
- def get_wait_time(self, page):
+ def get_wait_time.time(self, page):
return int(re.search(r"countdown\((.+),'change\(\)'\)", page).group(1)) / 100