diff options
| author | 2015-02-09 23:36:10 +0100 | |
|---|---|---|
| committer | 2015-02-10 01:30:25 +0100 | |
| commit | 2dc3536e36956eab99fa5f7945dcf60073b5fd57 (patch) | |
| tree | 94fde3e2b7ac9ac4c1a2cc9535e601b848cba0cc /module/plugins/internal/Extractor.py | |
| parent | [ExtractArchive] don't try '' as password (diff) | |
| download | pyload-2dc3536e36956eab99fa5f7945dcf60073b5fd57.tar.xz | |
[ExtractArchive] better Multipart behavior, new version output
Diffstat (limited to 'module/plugins/internal/Extractor.py')
| -rw-r--r-- | module/plugins/internal/Extractor.py | 10 | 
1 files changed, 8 insertions, 2 deletions
| diff --git a/module/plugins/internal/Extractor.py b/module/plugins/internal/Extractor.py index a5a8756d8..56860ad53 100644 --- a/module/plugins/internal/Extractor.py +++ b/module/plugins/internal/Extractor.py @@ -19,7 +19,7 @@ class PasswordError(Exception):  class Extractor:      __name__    = "Extractor" -    __version__ = "0.19" +    __version__ = "0.20"      __description__ = """Base extractor plugin"""      __license__     = "GPLv3" @@ -28,12 +28,18 @@ class Extractor:      EXTENSIONS = [] +    VERSION    = ""      @classmethod      def isArchive(cls, filename):          name = os.path.basename(filename).lower() -        return any(name.endswith(ext) for ext in cls.EXTENSIONS) +        return any(name.endswith(ext) for ext in cls.EXTENSIONS) and not cls.isMultipart(filename) + + +    @classmethod +    def isMultipart(cls,filename): +        return False      @classmethod | 
