summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FiledinoCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/FiledinoCom.py')
-rw-r--r--module/plugins/hoster/FiledinoCom.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/module/plugins/hoster/FiledinoCom.py b/module/plugins/hoster/FiledinoCom.py
index 7d1a82df4..6bdd01b51 100644
--- a/module/plugins/hoster/FiledinoCom.py
+++ b/module/plugins/hoster/FiledinoCom.py
@@ -1,18 +1,21 @@
# -*- coding: utf-8 -*-
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo
+import re
class FiledinoCom(XFileSharingPro):
__name__ = "FiledinoCom"
__type__ = "hoster"
- __pattern__ = r"http://(?:\w*\.)*filedino.com/\w{12}"
- __version__ = "0.01"
- __description__ = """FileDino.com hoster plugin"""
+ __pattern__ = r"http://(?:\w*\.)*(file(dino|fat).com)/\w{12}"
+ __version__ = "0.02"
+ __description__ = """FileDino / FileFat hoster plugin"""
__author_name__ = ("zoidberg")
__author_mail__ = ("zoidberg@mujmail.cz")
- FILE_SIZE_PATTERN = r'File Size : </span><span class="runninggreysmall">(?P<S>.+?)</span>'
+ FILE_SIZE_PATTERN = r'File Size : </(span|font)><(span|font)[^>]*>(?P<S>.+?)</(span|font)>'
+ DIRECT_LINK_PATTERN = r'http://www\.file(dino|fat)\.com/cgi-bin/dl\.cgi/'
- HOSTER_NAME = "filedino.com"
- DIRECT_LINK_PATTERN = r'http://www\.filedino\.com/cgi-bin/dl\.cgi/'
+ def setup(self):
+ self.HOSTER_NAME = re.search(self.__pattern__, self.pyfile.url).group(1)
+ self.multiDL = False
getInfo = create_getInfo(FiledinoCom) \ No newline at end of file