summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FileserveCom.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-04 10:52:31 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-04 10:52:31 +0200
commite2d4a21008fe1f44ca4d27abf2c18a85dda5df4a (patch)
tree71804983f54ad59baee2f1a0def78eb8e178e0e4 /module/plugins/hoster/FileserveCom.py
parentnew l18n files (diff)
downloadpyload-e2d4a21008fe1f44ca4d27abf2c18a85dda5df4a.tar.xz
plugin cleanups
Diffstat (limited to 'module/plugins/hoster/FileserveCom.py')
-rw-r--r--module/plugins/hoster/FileserveCom.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/module/plugins/hoster/FileserveCom.py b/module/plugins/hoster/FileserveCom.py
index ba76f0e39..7f34621aa 100644
--- a/module/plugins/hoster/FileserveCom.py
+++ b/module/plugins/hoster/FileserveCom.py
@@ -6,13 +6,10 @@ import re
from module.plugins.Hoster import Hoster
from module.plugins.ReCaptcha import ReCaptcha
+from module.common.json_layer import json_loads
from module.network.RequestFactory import getURL
from module.utils import parseFileSize
-try:
- from json import loads as json_loads
-except ImportError: # pragma: no cover
- from module.lib.simplejson import loads as json_loads
def getInfo(urls):
reg = r"<td>(http://(?:www\.)?fileserve\.com/file/.+(?:[\r\n\t]+)?)</td>[\r\n\t ]+<td>(.*?)</td>[\r\n\t ]+<td>(.*?)</td>[\r\n\t ]+<td>(Available|Not available)(?:\&nbsp;)?(?:<img|</td>)"
@@ -83,7 +80,7 @@ class FileserveCom(Hoster):
# TODO: handle login timeouts
self.download(self.pyfile.url)
- check = self.checkDownload({"login" : '<form action="/login.php" method="POST">'})
+ check = self.checkDownload({"login": '<form action="/login.php" method="POST">'})
if check == "login":
self.account.relogin(self.user)