summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/GamefrontCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/GamefrontCom.py')
-rw-r--r--module/plugins/hoster/GamefrontCom.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/plugins/hoster/GamefrontCom.py b/module/plugins/hoster/GamefrontCom.py
index b7e7f0bc8..2009d06ab 100644
--- a/module/plugins/hoster/GamefrontCom.py
+++ b/module/plugins/hoster/GamefrontCom.py
@@ -28,6 +28,7 @@ class GamefrontCom(Hoster):
self.resumeDownload = self.multiDL = True
self.chunkLimit = -1
+
def process(self, pyfile):
self.pyfile = pyfile
self.html = self.load(pyfile.url, decode=True)
@@ -44,12 +45,14 @@ class GamefrontCom(Hoster):
self.download(link)
+
def _checkOnline(self):
if re.search(self.PATTERN_OFFLINE, self.html):
return False
else:
return True
+
def _getName(self):
name = re.search(self.PATTERN_FILENAME, self.html)
if name is None:
@@ -57,6 +60,7 @@ class GamefrontCom(Hoster):
return name.group(1)
+
def _getLink(self):
self.html2 = self.load("http://www.gamefront.com/" + re.search("(files/service/thankyou\\?id=\w+)",
self.html).group(1))