From 5a11f7f9f6696cf38f04a422d40e621c89094c21 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 4 Dec 2011 14:29:57 +0100 Subject: temp. offline status for fs --- module/plugins/hoster/FilesonicCom.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'module') 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") -- cgit v1.2.3