summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/EasybytezCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-10 21:17:27 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-10 21:17:27 +0100
commit4747e1d7958c9fb1180da6f3a21f3093220a6655 (patch)
tree9c47a1355158bb2f3ef6a1f723f42634d8a20e6b /module/plugins/hooks/EasybytezCom.py
parent[RehostTo] Account fixup (diff)
downloadpyload-4747e1d7958c9fb1180da6f3a21f3093220a6655.tar.xz
Code improvements
Diffstat (limited to 'module/plugins/hooks/EasybytezCom.py')
-rw-r--r--module/plugins/hooks/EasybytezCom.py17
1 files changed, 3 insertions, 14 deletions
diff --git a/module/plugins/hooks/EasybytezCom.py b/module/plugins/hooks/EasybytezCom.py
index c460de7b7..e08127514 100644
--- a/module/plugins/hooks/EasybytezCom.py
+++ b/module/plugins/hooks/EasybytezCom.py
@@ -26,18 +26,7 @@ class EasybytezCom(MultiHook):
def getHosters(self):
user, data = self.account.selectAccount()
- try:
- req = self.account.getAccountRequest(user)
- page = req.load("http://www.easybytez.com")
+ req = self.account.getAccountRequest(user)
+ page = req.load("http://www.easybytez.com")
- hosters = re.search(r'</textarea>\s*Supported sites:(.*)', page).group(1).split(',')
-
- except Exception, e:
- self.logWarning(_("Unable to load supported hoster list, using last known"))
- self.logDebug(e)
-
- hosters = ["bitshare.com", "crocko.com", "ddlstorage.com", "depositfiles.com", "extabit.com", "hotfile.com",
- "mediafire.com", "netload.in", "rapidgator.net", "rapidshare.com", "uploading.com", "uload.to",
- "uploaded.to"]
- finally:
- return hosters
+ return re.search(r'</textarea>\s*Supported sites:(.*)', page).group(1).split(',')