diff options
| author | jvoisin | 2015-12-02 17:07:19 +0100 |
|---|---|---|
| committer | jvoisin | 2015-12-02 17:22:45 +0100 |
| commit | 80ece3001895ea13d50915a5215fd47e313bab4c (patch) | |
| tree | c5ede43867c5d7fe2af4178b34b0e6dc219f6aac /libmat/archive.py | |
| parent | 3cf80e8b5d6faf410e9ad3aad77f23cf6418a587 (diff) | |
Remove hachoir from MAT.
This (huge) commit removes completely hachoir from MAT.
Audio files are now processed with mutagen, and images
with exiftool, since the main python imaging library (PIL)
isn't super-great to deal with metadata (and damaged/non-standard
files).
Package maintainer should change the dependencies to reflect this.
Diffstat (limited to 'libmat/archive.py')
| -rw-r--r-- | libmat/archive.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/libmat/archive.py b/libmat/archive.py index ad9fdc9..2e14538 100644 --- a/libmat/archive.py +++ b/libmat/archive.py | |||
| @@ -20,9 +20,8 @@ class GenericArchiveStripper(parser.GenericParser): | |||
| 20 | """ Represent a generic archive | 20 | """ Represent a generic archive |
| 21 | """ | 21 | """ |
| 22 | 22 | ||
| 23 | def __init__(self, filename, parser, mime, backup, is_writable, **kwargs): | 23 | def __init__(self, filename, mime, backup, is_writable, **kwargs): |
| 24 | super(GenericArchiveStripper, self).__init__(filename, | 24 | super(GenericArchiveStripper, self).__init__(filename, mime, backup, is_writable, **kwargs) |
| 25 | parser, mime, backup, is_writable, **kwargs) | ||
| 26 | self.compression = '' | 25 | self.compression = '' |
| 27 | self.add2archive = kwargs['add2archive'] | 26 | self.add2archive = kwargs['add2archive'] |
| 28 | self.tempdir = tempfile.mkdtemp() | 27 | self.tempdir = tempfile.mkdtemp() |
| @@ -354,8 +353,8 @@ class GzipStripper(TarStripper): | |||
| 354 | """ Represent a tar.gz archive | 353 | """ Represent a tar.gz archive |
| 355 | """ | 354 | """ |
| 356 | 355 | ||
| 357 | def __init__(self, filename, parser, mime, backup, is_writable, **kwargs): | 356 | def __init__(self, filename, mime, backup, is_writable, **kwargs): |
| 358 | super(GzipStripper, self).__init__(filename, parser, mime, backup, is_writable, **kwargs) | 357 | super(GzipStripper, self).__init__(filename, mime, backup, is_writable, **kwargs) |
| 359 | self.compression = ':gz' | 358 | self.compression = ':gz' |
| 360 | 359 | ||
| 361 | 360 | ||
| @@ -363,6 +362,6 @@ class Bzip2Stripper(TarStripper): | |||
| 363 | """ Represent a tar.bz2 archive | 362 | """ Represent a tar.bz2 archive |
| 364 | """ | 363 | """ |
| 365 | 364 | ||
| 366 | def __init__(self, filename, parser, mime, backup, is_writable, **kwargs): | 365 | def __init__(self, filename, mime, backup, is_writable, **kwargs): |
| 367 | super(Bzip2Stripper, self).__init__(filename, parser, mime, backup, is_writable, **kwargs) | 366 | super(Bzip2Stripper, self).__init__(filename, mime, backup, is_writable, **kwargs) |
| 368 | self.compression = ':bz2' | 367 | self.compression = ':bz2' |
