diff options
author | Stefano <l.stickell@yahoo.it> | 2013-05-09 12:12:28 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-05-09 12:12:28 +0200 |
commit | 2746d10440ce7ed267290e41ef7b272d6b9a7f17 (patch) | |
tree | d5c3ee16b2c976cb708d3647ec9eb315b014d757 /module/plugins/hoster/PutlockerCom.py | |
parent | YoutubeCom: version increased after 6ccaef8875ad3e3855717066d71ababbbc1fb67d (diff) | |
download | pyload-2746d10440ce7ed267290e41ef7b272d6b9a7f17.tar.xz |
PutlockerCom: fixed parseError raised if the url don't have the www prefix.
Fixes #96
Diffstat (limited to 'module/plugins/hoster/PutlockerCom.py')
-rw-r--r-- | module/plugins/hoster/PutlockerCom.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/hoster/PutlockerCom.py b/module/plugins/hoster/PutlockerCom.py index 9eff0dc2b..b2016472d 100644 --- a/module/plugins/hoster/PutlockerCom.py +++ b/module/plugins/hoster/PutlockerCom.py @@ -28,7 +28,7 @@ class PutlockerCom(SimpleHoster): __name__ = "PutlockerCom" __type__ = "hoster" __pattern__ = r'http://(www\.)?putlocker\.com/(file|embed)/[A-Z0-9]+' - __version__ = "0.24" + __version__ = "0.25" __description__ = """Putlocker.Com""" __author_name__ = ("jeix", "stickell") __author_mail__ = ("l.stickell@yahoo.it") @@ -37,6 +37,8 @@ class PutlockerCom(SimpleHoster): FILE_INFO_PATTERN = r'site-content">\s*<h1>(?P<N>.+)<strong>\( (?P<S>[^)]+) \)</strong></h1>' def handleFree(self): + self.pyfile.url = re.sub(r'http://putlocker\.com', r'http://www.putlocker.com', self.pyfile.url) + self.html = self.load(self.pyfile.url, decode=True) link = self._getLink() |