summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-12-04 14:29:57 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-12-04 14:29:57 +0100
commit5a11f7f9f6696cf38f04a422d40e621c89094c21 (patch)
tree239bbda5d8f455cdf574f933cb784d10d57afda8 /module
parentfix fs (diff)
downloadpyload-5a11f7f9f6696cf38f04a422d40e621c89094c21.tar.xz
temp. offline status for fs
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hoster/FilesonicCom.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/module/plugins/hoster/FilesonicCom.py b/module/plugins/hoster/FilesonicCom.py
index ce60c618b..813333acb 100644
--- a/module/plugins/hoster/FilesonicCom.py
+++ b/module/plugins/hoster/FilesonicCom.py
@@ -126,11 +126,14 @@ class FilesonicCom(Hoster):
#wupload seems to return list and no dicts
if type(links) == dict:
- dl = links.values()[0]["url"]
+ info = links.values()[0]
else:
- dl = links[0]["url"]
+ info = links[0]
- self.download(dl)
+ if "status" in info and info["status"] == "NOT_AVAILABLE":
+ self.tempOffline()
+
+ self.download(info["url"])
def downloadFree(self):
self.logDebug("Free download")