diff options
author | 2015-05-22 23:34:01 +0200 | |
---|---|---|
committer | 2015-05-22 23:34:01 +0200 | |
commit | c6809b5fdd2a8a5cf62d23be591e488dd9264281 (patch) | |
tree | 3f8b5dbbe0ab3532574201a53a9a74ec19b22fd7 /module/plugins/hoster/WebshareCz.py | |
parent | [XFSHoster] Handle videoplayer (diff) | |
download | pyload-c6809b5fdd2a8a5cf62d23be591e488dd9264281.tar.xz |
Tiny code cosmetics
Diffstat (limited to 'module/plugins/hoster/WebshareCz.py')
-rw-r--r-- | module/plugins/hoster/WebshareCz.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/module/plugins/hoster/WebshareCz.py b/module/plugins/hoster/WebshareCz.py index 59f61dc87..ae670c8d4 100644 --- a/module/plugins/hoster/WebshareCz.py +++ b/module/plugins/hoster/WebshareCz.py @@ -51,10 +51,8 @@ class WebshareCz(SimpleHoster): self.logDebug("API data: " + api_data) m = re.search('<link>(.+)</link>', api_data) - if m is None: - self.error(_("Unable to detect direct link")) - - self.link = m.group(1) + if m: + self.link = m.group(1) def handlePremium(self, pyfile): |