summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/PornhostCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/PornhostCom.py')
-rw-r--r--module/plugins/hoster/PornhostCom.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/plugins/hoster/PornhostCom.py b/module/plugins/hoster/PornhostCom.py
index 51426de71..6fb0fad83 100644
--- a/module/plugins/hoster/PornhostCom.py
+++ b/module/plugins/hoster/PornhostCom.py
@@ -25,11 +25,13 @@ class PornhostCom(Hoster):
pyfile.name = self.get_file_name()
self.download(self.get_file_url())
+
# Old interface
def download_html(self):
url = self.pyfile.url
self.html = self.load(url)
+
def get_file_url(self):
""" returns the absolute downloadable filepath
"""
@@ -47,6 +49,7 @@ class PornhostCom(Hoster):
return url.group(1).strip()
+
def get_file_name(self):
if not self.html:
self.download_html()
@@ -63,6 +66,7 @@ class PornhostCom(Hoster):
return name
+
def file_exists(self):
""" returns True or False
"""