diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-01-29 02:19:37 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-29 02:19:37 +0100 |
commit | f23019b934446275b97f0c5fecf7709c19e557f9 (patch) | |
tree | e8d5a3406a0f618868ca2abaa27c4c905d2efbc0 /module/plugins/hoster | |
parent | Merge pull request #708 from glukgluk/patch-2 (diff) | |
download | pyload-f23019b934446275b97f0c5fecf7709c19e557f9.tar.xz |
[JustPremium] Cleanup
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/FreeWayMe.py | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/module/plugins/hoster/FreeWayMe.py b/module/plugins/hoster/FreeWayMe.py index 6d08e1f8d..76ffca505 100644 --- a/module/plugins/hoster/FreeWayMe.py +++ b/module/plugins/hoster/FreeWayMe.py @@ -27,27 +27,27 @@ class FreeWayMe(MultiHoster): for _i in xrange(5): # try it five times header = self.load("https://www.free-way.me/load.php", - get={'multiget': 7, - 'url' : pyfile.url, - 'user' : user, - 'pw' : self.account.getAccountData(user)['password'], - 'json' : ""}, just_header=True) - if "location" in header: - #download - self.logInfo("Download: " + header['location']) - headers = self.load(header['location'],just_header=True) + get={'multiget': 7, + 'url' : pyfile.url, + 'user' : user, + 'pw' : self.account.getAccountData(user)['password'], + 'json' : ""}, + just_header=True) + + if 'location' in header: + headers = self.load(header['location'], just_header=True) if headers['code'] == 500: - #error on 2nd stage - self.logInfo("Free-Way Error [stage2]") - # todo: handle errors + # error on 2nd stage + self.logError(_("Error [stage2]")) else: # seems to work.. self.download(header['location']) break else: - #error page first stage - self.logInfo("Free-Way Error [stage1]") - # todo: handle errors + # error page first stage + self.logError(_("Error [stage1]")) + + #@TODO: handle errors getInfo = create_getInfo(FreeWayMe) |