From 7a2ba98fd727c9a4d0d886eae515e707d41f724b Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 17 Nov 2013 00:38:11 +0100 Subject: Hoster: PutlockerCom: More strict pattern + some code cosmetics --- module/plugins/hoster/PutlockerCom.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'module/plugins/hoster') diff --git a/module/plugins/hoster/PutlockerCom.py b/module/plugins/hoster/PutlockerCom.py index 7b9ac1f84..dab993f80 100644 --- a/module/plugins/hoster/PutlockerCom.py +++ b/module/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]{15,16})' + __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 ]+ Date: Wed, 20 Nov 2013 01:55:10 +0100 Subject: Hoster: PutlockerCom: Pattern half reverted --- module/plugins/hoster/PutlockerCom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/plugins/hoster') diff --git a/module/plugins/hoster/PutlockerCom.py b/module/plugins/hoster/PutlockerCom.py index dab993f80..afe084028 100644 --- a/module/plugins/hoster/PutlockerCom.py +++ b/module/plugins/hoster/PutlockerCom.py @@ -26,7 +26,7 @@ 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-zA-Z0-9]{15,16})' + __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") -- cgit v1.2.3