diff options
Diffstat (limited to 'module')
-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")
|