diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-12-04 14:29:57 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-12-04 14:29:57 +0100 |
commit | 5a11f7f9f6696cf38f04a422d40e621c89094c21 (patch) | |
tree | 239bbda5d8f455cdf574f933cb784d10d57afda8 | |
parent | fix fs (diff) | |
download | pyload-5a11f7f9f6696cf38f04a422d40e621c89094c21.tar.xz |
temp. offline status for fs
-rw-r--r-- | module/plugins/hoster/FilesonicCom.py | 9 |
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")
|