From 16af85004c84d0d6c626b4f8424ce9647669a0c1 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 9 Jun 2013 18:10:22 +0200 Subject: moved everything from module to pyload --- module/plugins/crypter/XfilesharingProFolder.py | 34 ------------------------- 1 file changed, 34 deletions(-) delete mode 100644 module/plugins/crypter/XfilesharingProFolder.py (limited to 'module/plugins/crypter/XfilesharingProFolder.py') diff --git a/module/plugins/crypter/XfilesharingProFolder.py b/module/plugins/crypter/XfilesharingProFolder.py deleted file mode 100644 index 8e58c207d..000000000 --- a/module/plugins/crypter/XfilesharingProFolder.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- - -from module.plugins.Crypter import Crypter, Package -import re - -class XfilesharingProFolder(Crypter): - __name__ = "XfilesharingProFolder" - __type__ = "crypter" - __pattern__ = r"http://(?:www\.)?((easybytez|turboupload|uploadville|file4safe|fileband|filebeep|grupload|247upload)\.com|(muchshare|annonhost).net|bzlink.us)/users/.*" - __version__ = "0.01" - __description__ = """Generic XfilesharingPro Folder Plugin""" - __author_name__ = ("zoidberg") - __author_mail__ = ("zoidberg@mujmail.cz") - - LINK_PATTERN = r'' - SUBFOLDER_PATTERN = r'(?!\. \.<)([^<]+)' - - def decryptURL(self, url): - return self.decryptFile(self.load(url, decode = True)) - - def decryptFile(self, html): - new_links = [] - - new_links.extend(re.findall(self.LINK_PATTERN, html)) - - subfolders = re.findall(self.SUBFOLDER_PATTERN, html) - #self.logDebug(subfolders) - for (url, name) in subfolders: - if self.package: name = "%s/%s" % (self.package.name, name) - new_links.append(Package(name, [url])) - - if not new_links: self.fail('Could not extract any links') - - return new_links \ No newline at end of file -- cgit v1.2.3