From ad937775a98fc06ce91f591e624171b13b7462fe Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 20 Nov 2013 07:09:40 -0800 Subject: Merge pull request #392 from vuolter/s/hoster/PutlockerCom Hoster: PutlockerCom: More strict pattern + some code cosmetics(cherry picked from commit 21e1a107ba6927ab618b196e224ac403512ca628) --- pyload/plugins/hoster/PutlockerCom.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pyload/plugins') diff --git a/pyload/plugins/hoster/PutlockerCom.py b/pyload/plugins/hoster/PutlockerCom.py index 7b9ac1f84..afe084028 100644 --- a/pyload/plugins/hoster/PutlockerCom.py +++ b/pyload/plugins/hoster/PutlockerCom.py @@ -26,8 +26,8 @@ from module.plugins.internal.SimpleHoster import SimpleHoster class PutlockerCom(SimpleHoster): __name__ = "PutlockerCom" __type__ = "hoster" - __pattern__ = r'http://(?:www\.)?putlocker\.com/(mobile/)?(file|embed)/(?P[A-Z0-9]+)' - __version__ = "0.31" + __pattern__ = r'http://(?:www\.)?putlocker\.com/(mobile/)?(file|embed)/(?P[a-zA-Z0-9]+)' + __version__ = "0.32" __description__ = """Putlocker.Com""" __author_name__ = ("jeix", "stickell", "Walter Purcaro") __author_mail__ = ("", "l.stickell@yahoo.it", "vuolter@gmail.com") @@ -58,9 +58,9 @@ class PutlockerCom(SimpleHoster): self.html = self.load(self.pyfile.url, post=post_data) if (">You have exceeded the daily stream limit for your country\\. You can wait until tomorrow" in self.html or "(>This content server has been temporarily disabled for upgrades|Try again soon\\. You can still download it below\\.<)" in self.html): - self.retry(wait_time=7200, reason="Download limit exceeded or server disabled") # 2 hours wait + self.retry(wait_time=60 * 60 * 2, reason="Download limit exceeded or server disabled") # 2 hours wait - patterns = (r'(/get_file\.php\?id=[A-Z0-9]+&key=[A-Za-z0-9=]+&original=1)', + patterns = (r'(/get_file\.php\?id=[A-Z0-9]+&key=[a-zA-Z0-9=]+&original=1)', r'(/get_file\.php\?download=[A-Z0-9]+&key=[a-z0-9]+)', r'(/get_file\.php\?download=[A-Z0-9]+&key=[a-z0-9]+&original=1)', r'Tired of ads and waiting\? Go Pro![\t\n\rn ]+[\t\n\rn ]+