diff options
| author | 2012-03-06 13:36:39 +0100 | |
|---|---|---|
| committer | 2012-03-06 13:36:39 +0100 | |
| commit | 4df2b77fdf42046fe19bd371be7c7255986b5980 (patch) | |
| tree | 2a7227a0d22e03dc2c085514eaab36a7e5e612c4 /module/plugins/hooks/EasybytezCom.py | |
| parent | ssl fix (diff) | |
| download | pyload-4df2b77fdf42046fe19bd371be7c7255986b5980.tar.xz | |
renamed hooks to addons, new filemanager and database, many new api methods
you will loose ALL your LINKS, webinterface will NOT work
Diffstat (limited to 'module/plugins/hooks/EasybytezCom.py')
| -rw-r--r-- | module/plugins/hooks/EasybytezCom.py | 32 | 
1 files changed, 0 insertions, 32 deletions
diff --git a/module/plugins/hooks/EasybytezCom.py b/module/plugins/hooks/EasybytezCom.py deleted file mode 100644 index 4dd39cca6..000000000 --- a/module/plugins/hooks/EasybytezCom.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- - -from module.network.RequestFactory import getURL -from module.plugins.internal.MultiHoster import MultiHoster -import re - -def getConfigSet(option): -    s = set(option.lower().replace(',','|').split('|')) -    s.discard(u'') -    return s - -class EasybytezCom(MultiHoster): -    __name__ = "EasybytezCom" -    __version__ = "0.01" -    __type__ = "hook" -    __config__ = [("activated", "bool", "Activated", "False"), -        ("includeHoster", "str", "Use only for downloads from (comma-separated hosters)", ""), -        ("excludeHoster", "str", "Do not use for downloads from (comma-separated hosters)", "")] -    __description__ = """EasyBytez.com hook plugin""" -    __author_name__ = ("zoidberg") -    __author_mail__ = ("zoidberg@mujmail.cz") - -    def getHoster(self): - -        hoster = set(['2shared.com', 'easy-share.com', 'filefactory.com', 'fileserve.com', 'filesonic.com', 'hotfile.com', 'mediafire.com', 'megaupload.com', 'netload.in', 'rapidshare.com', 'uploading.com', 'wupload.com', 'oron.com', 'uploadstation.com', 'ul.to', 'uploaded.to'])    -         -        option = self.getConfig('includeHoster').strip() -        if option: hoster &= getConfigSet(option) -        option = self.getConfig('excludeHoster').strip() -        if option: hoster -= getConfigSet(option) -         -        return list(hoster)
\ No newline at end of file  | 
