diff options
author | Walter Purcaro <vuolter@gmail.com> | 2013-11-10 16:34:35 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2013-11-10 16:34:35 +0100 |
commit | a2201efe4e8fbc1c4e820cb35c3240559b60da48 (patch) | |
tree | 2e3a0c1bc395d3ab6f62f3261203edb98679e071 /module/plugins | |
parent | SockshareCom added (diff) | |
download | pyload-a2201efe4e8fbc1c4e820cb35c3240559b60da48.tar.xz |
Hoster: PutlockerCom: Code cosmetic
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/hoster/PutlockerCom.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/module/plugins/hoster/PutlockerCom.py b/module/plugins/hoster/PutlockerCom.py index dbd13ac3b..7b9ac1f84 100644 --- a/module/plugins/hoster/PutlockerCom.py +++ b/module/plugins/hoster/PutlockerCom.py @@ -74,8 +74,7 @@ class PutlockerCom(SimpleHoster): self.html = self.load("http://www.%s%s" % (self.HOSTER_NAME, link.group(1))) link = re.search(r'media:content url="(http://.*?)"', self.html) if not link: - hostername = self.HOSTER_NAME.rsplit(".") - pattern = "\"(http://media\\-b\\d+\\.%s\\.%s/download/\\d+/.*?)\"" % (hostername[0], hostername[1]) + pattern = "\"(http://media\\-b\\d+\\.%s\\.%s/download/\\d+/.*?)\"" % self.HOSTER_NAME.rsplit(".") link = re.search(pattern, self.html) else: self.parseError('Unable to detect a download link') |