summaryrefslogtreecommitdiff
path: root/libmat (unfollow)
AgeCommit message (Collapse)Author
2016-08-29Python3, now with less featuresjvoisin
I want to release a new version ASAP, so lets ditch some features for now.
2016-03-28Even more python3 portabilityjvoisin
2016-03-28First step toward python3jvoisin
2016-01-11Fix various typos pointed by pabsjvoisin
2016-01-03MAT 0.6.10.6.1jvoisin
2016-01-03Fix the segfault when listing supported filesjvoisin
This should close https://labs.riseup.net/code/issues/10839
2015-12-30MAT 0.60.6jvoisin
2015-12-30Fix some pep8-related issuesjvoisin
2015-12-20Fix some typoes pointed by intrigerijvoisin
2015-12-20Correct wording for absent dependenciesjvoisin
There is _no_ image support without exiftool, and _no_ audio support without mutagen. Not "limited" support.
2015-12-20Improves the previous commit thanks to intrigerijvoisin
I forgot to add `gi.require_version('Poppler', '0.18')` everywhere, and `gi.require_version('Gtk', '3.0')` in mat-gui too
2015-12-19Add `gi.require_version('Poppler', '0.18')` to silence warningsjvoisin
Closes https://labs.riseup.net/code/issues/10550 Also known as "pygi is emitting a lot of warnings"
2015-12-18Enhance CLI's error display by tweaking log leveljvoisin
2015-12-18Fix the GUI for goodjvoisin
a027c0b989f7c7a5182db25aa628d2c138d024ae was a mistake.
2015-12-16Fix the gui's metadata popupjvoisin
It seems that Python is still sucking hard when it comes to encoding.
2015-12-05Add some resources about why we're using python-pdfrwjvoisin
2015-12-04Silence exiftool's stderrjvoisin
In the past, this might have been useful, but now, exiftool works on pretty much every file passed to it by MAT. Also, if something goes wrong, MAT will know about this thanks to the return code != 0.
2015-12-04Fix mutagen's behaviour on file without metadata blockjvoisin
2015-12-02Misc pep8 conformityjvoisin
2015-12-02Remove two useless methods from the archive stripperjvoisin
2015-12-02Add some pragma to avoid testing some functionsjvoisin
2015-12-02Improves the way torrents are handledjvoisin
This commit makes metadata removal of torrents recursive. It's close to useless, because I haven't seen any torrent with a recursive structure, but the documentation says that it can happen, and the method was already implemented, so better safe than sorry.
2015-12-02Remove hachoir from MAT.jvoisin
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.
2015-11-27Add some missing docstringsjvoisin
2015-11-26Simplify a bit the hachoir-powered image parserjvoisin
2015-11-26Remove a useless rant in a commentjvoisin
2015-11-26Remove a superfluous `pass` instructionjvoisin
2015-11-26Remove two useless variablesjvoisin
2015-11-26Make the logging more pep-282 compliantjvoisin
See https://www.python.org/dev/peps/pep-0282/ for details, but basically this is commit leaves the string replacement to the logging function, instead of doing it in place in its parameters with the '%' operator.
2015-11-03Improves a bit portabilityjvoisin
2015-11-03Fix some mistakes found thanks to the previous commitjvoisin
2015-11-03Add more type hintjvoisin
2015-11-03SImplification and documentation of `create_class_file()`jvoisin
2015-11-03Minor refactorisation of `get_datafile_path()`jvoisin
2015-11-02Add support for TIFF filejvoisin
2015-11-02Some minors pep8 modificationsjvoisin
2015-08-19MAT 0.5.40.5.4jvoisin
2015-08-19Minor code simplificationjvoisin
2015-08-19Revert the ZIP_EPOCH date to 1980-01-01 00:00:00jvoisin
This was a typo from my side, spotted by intrigeri.
2015-08-18Improves the way MAT deals with ZipTimestampsjvoisin
It seems that using os.utime is TZ-dependent, so lets use a ZipInfo thing instead.
2015-08-01archive: explicitly treat text we got from tarfile as encoded UTF-8 (Closes: ↵intrigeri
MAT#9831). Without this, I see test failures caused by: test_remove_bz2 (libtest.TestArchiveProcessing) Test MAT's ability to process .tar.bz2 ... /usr/lib/python2.7/tarfile.py:1993: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal if self.name is not None and os.path.abspath(name) == self.name: This change seems to make sense because we're creating our tarin and tarout objects with encoding='utf-8' in the first place, so it's no big surprise that what we get from it is UTF-8 -encoded text.
2015-08-01archive: use correct epoch time.intrigeri
epoch is 1970-01-01 00:00:00 UTC, not 1970-01-01 01:00:00 UTC. This mistake was introduced in commit ef5a32c to fix the test suite. I guess that it was a hack that workaround'ed an actual bug for a specific timezone only. If that bug reappears, we'll have to fix that by making this module timezone-aware, not by setting a wrong epoch value.
2015-07-28Distance MAT a bit more from hachoirjvoisin
2015-07-25_MASSIVE_ pep8 revampjvoisin
Thank you so much PyCharm
2015-07-25ExiftoolStripper: white-list the "File Type Extension" and "Megapixels" fields.intrigeri
Those are not actual metadata stored in the file, but rather information that can be trivially derived from the actual data. This fixes the test suite on current Debian sid, most likely because its libimage-exiftool-perl (9.98-1) reports more such "metadata" fields than the one in Jessie (9.74-1). Fix-committed: #9252 Closes: Debian#789833
2015-07-21Remove the pillow stuff, because it was a bad idea.jvoisin
Pillow sucks at parsing malformed pictures :/
2015-04-11MAT 0.5.30.5.3jvoisin
2015-04-11Fix an ods-related bugjvoisin
Since exiftool can't remove the Palette field, let's whitelist it. And even if it could, this would really degrade the quality of the picture.
2015-04-04Minor style improvement in PDF handlingjvoisin
2015-04-04Fix #9007jvoisin
The MAT can now handle PDf with different pages size. Also, instead of being overwritten, context are now pushed/poped instead.