From 13e299c93d05f9766251f948c79e64af543b7fec Mon Sep 17 00:00:00 2001 From: Stefano Date: Sun, 27 Oct 2013 14:39:29 +0100 Subject: Putlocker: added support for "mobile" links. + Better url replacement (see #349) --- module/plugins/hoster/PutlockerCom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/hoster') diff --git a/module/plugins/hoster/PutlockerCom.py b/module/plugins/hoster/PutlockerCom.py index 80d836655..3cb5065d5 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/(file|embed)/[A-Z0-9]+' - __version__ = "0.29" + __pattern__ = r'http://(?:www\.)?putlocker\.com/(mobile/)?(file|embed)/(?P[A-Z0-9]+)' + __version__ = "0.30" __description__ = """Putlocker.Com""" __author_name__ = ("jeix", "stickell", "Walter Purcaro") __author_mail__ = ("", "l.stickell@yahoo.it", "vuolter@gmail.com") @@ -35,7 +35,7 @@ class PutlockerCom(SimpleHoster): FILE_OFFLINE_PATTERN = r"This file doesn't exist, or has been removed." FILE_INFO_PATTERN = r'site-content">\s*

(?P.+)\( (?P[^)]+) \)

' - FILE_URL_REPLACEMENTS = [(r'http://putlocker\.com', r'http://www.putlocker.com')] + FILE_URL_REPLACEMENTS = [(__pattern__, r'http://www.putlocker.com/file/\g')] def setup(self): self.multiDL = self.resumeDownload = True -- cgit v1.2.3