summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/WebshareCz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-02 00:08:42 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-02 00:08:42 +0100
commit2a8d0af88b07e62eeb316a8dfbb7cd8d7dbfdcac (patch)
tree4324ec7c224724156ee9897e8689135f85e2e804 /module/plugins/hoster/WebshareCz.py
parentMerge pull request #920 from chris-19/stable (diff)
parent[SimpleHoster] Force _isDirectLink to old style (diff)
downloadpyload-2a8d0af88b07e62eeb316a8dfbb7cd8d7dbfdcac.tar.xz
Merge branch 'stable-next' into stable
Diffstat (limited to 'module/plugins/hoster/WebshareCz.py')
-rw-r--r--module/plugins/hoster/WebshareCz.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/hoster/WebshareCz.py b/module/plugins/hoster/WebshareCz.py
index cd43de2bb..17aaff37c 100644
--- a/module/plugins/hoster/WebshareCz.py
+++ b/module/plugins/hoster/WebshareCz.py
@@ -35,13 +35,14 @@ class WebshareCz(SimpleHoster):
def handleFree(self):
api_data = self.load('https://webshare.cz/api/file_link/', post={'ident': self.fid})
+
self.logDebug("API data: " + api_data)
+
m = re.search('<link>(.+)</link>', api_data)
if m is None:
self.error(_("Unable to detect direct link"))
- direct = m.group(1)
- self.logDebug("Direct link: " + direct)
- self.download(direct, disposition=True)
+
+ self.download(m.group(1), disposition=True)
def getFileInfo(self):