From a2201efe4e8fbc1c4e820cb35c3240559b60da48 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 10 Nov 2013 16:34:35 +0100 Subject: Hoster: PutlockerCom: Code cosmetic --- module/plugins/hoster/PutlockerCom.py | 3 +-- 1 file changed, 1 insertion(+), 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') -- cgit v1.2.3