diff options
author | Stefano <l.stickell@yahoo.it> | 2013-10-27 14:39:29 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-10-27 14:39:29 +0100 |
commit | 13e299c93d05f9766251f948c79e64af543b7fec (patch) | |
tree | d9693e5fdfdaf2714227c8b02a230c29d6828653 /module | |
parent | YouTube: using encode to avoid any bad char issue (diff) | |
download | pyload-13e299c93d05f9766251f948c79e64af543b7fec.tar.xz |
Putlocker: added support for "mobile" links.
+ Better url replacement (see #349)
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/PutlockerCom.py | 6 |
1 files changed, 3 insertions, 3 deletions
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<ID>[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*<h1>(?P<N>.+)<strong>\( (?P<S>[^)]+) \)</strong></h1>' - FILE_URL_REPLACEMENTS = [(r'http://putlocker\.com', r'http://www.putlocker.com')] + FILE_URL_REPLACEMENTS = [(__pattern__, r'http://www.putlocker.com/file/\g<ID>')] def setup(self): self.multiDL = self.resumeDownload = True |