diff options
author | Stefano <l.stickell@yahoo.it> | 2013-11-10 16:52:29 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-11-10 16:52:29 +0100 |
commit | e3b30b2254279fcd36142d42edbe22a3abd49192 (patch) | |
tree | 2e3a0c1bc395d3ab6f62f3261203edb98679e071 | |
parent | SockshareCom added (diff) | |
parent | Hoster: PutlockerCom: Code cosmetic (diff) | |
download | pyload-e3b30b2254279fcd36142d42edbe22a3abd49192.tar.xz |
Merge pull request #374 from vuolter/s/hoster/SockshareCom
PutlockerCom: Code cosmetic
-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') |