summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/PornhostCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-11 15:14:28 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-11 15:14:28 +0200
commitf76e5c2336718dca9da8033ba22cd83c72c7b3b3 (patch)
tree5e4152ed534417ba24c04aedfb2a4070ae669372 /module/plugins/hoster/PornhostCom.py
parent[FileshareInUa] Mark dead (diff)
downloadpyload-f76e5c2336718dca9da8033ba22cd83c72c7b3b3.tar.xz
Pattern update 1
Diffstat (limited to 'module/plugins/hoster/PornhostCom.py')
-rw-r--r--module/plugins/hoster/PornhostCom.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/PornhostCom.py b/module/plugins/hoster/PornhostCom.py
index 94bbb426b..51426de71 100644
--- a/module/plugins/hoster/PornhostCom.py
+++ b/module/plugins/hoster/PornhostCom.py
@@ -10,7 +10,7 @@ class PornhostCom(Hoster):
__type__ = "hoster"
__version__ = "0.2"
- __pattern__ = r'http://(?:www\.)?pornhost\.com/([0-9]+/[0-9]+\.html|[0-9]+)'
+ __pattern__ = r'http://(?:www\.)?pornhost\.com/(\d+/\d+\.html|\d+)'
__description__ = """Pornhost.com hoster plugin"""
__license__ = "GPLv3"
@@ -38,11 +38,11 @@ class PornhostCom(Hoster):
url = re.search(r'download this file</label>.*?<a href="(.*?)"', self.html)
if url is None:
- url = re.search(r'"(http://dl[0-9]+\.pornhost\.com/files/.*?/.*?/.*?/.*?/.*?/.*?\..*?)"', self.html)
+ url = re.search(r'"(http://dl\d+\.pornhost\.com/files/.*?/.*?/.*?/.*?/.*?/.*?\..*?)"', self.html)
if url is None:
url = re.search(r'width: 894px; height: 675px">.*?<img src="(.*?)"', self.html)
if url is None:
- url = re.search(r'"http://file[0-9]+\.pornhost\.com/[0-9]+/.*?"',
+ url = re.search(r'"http://file\d+\.pornhost\.com/\d+/.*?"',
self.html) # TODO: fix this one since it doesn't match
return url.group(1).strip()
@@ -57,7 +57,7 @@ class PornhostCom(Hoster):
if name is None:
name = re.search(r'<title>pornhost\.com - free file hosting with a twist -(.*?)</title>', self.html)
if name is None:
- name = re.search(r'"http://file[0-9]+\.pornhost\.com/.*?/(.*?)"', self.html)
+ name = re.search(r'"http://file\d+\.pornhost\.com/.*?/(.*?)"', self.html)
name = name.group(1).strip() + ".flv"