summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-11-10 16:52:29 +0100
committerGravatar Stefano <l.stickell@yahoo.it> 2013-11-10 16:52:29 +0100
commite3b30b2254279fcd36142d42edbe22a3abd49192 (patch)
tree2e3a0c1bc395d3ab6f62f3261203edb98679e071
parentSockshareCom added (diff)
parentHoster: PutlockerCom: Code cosmetic (diff)
downloadpyload-e3b30b2254279fcd36142d42edbe22a3abd49192.tar.xz
Merge pull request #374 from vuolter/s/hoster/SockshareCom
PutlockerCom: Code cosmetic
-rw-r--r--module/plugins/hoster/PutlockerCom.py3
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')