diff options
| author | jvoisin | 2018-10-18 19:19:56 +0200 |
|---|---|---|
| committer | jvoisin | 2018-10-22 12:58:01 +0200 |
| commit | e70ea811c99c16f3382c08153eda573df0825536 (patch) | |
| tree | f1c05ca94b9d2ab09f74cfa6c7191bf73bf104e2 /libmat2/abstract.py | |
| parent | 2ae5d909c3e30c009bfc45bceba96ddd82f3e198 (diff) | |
Implement support for .avi files, via ffmpeg
- This commit introduces optional dependencies (namely ffmpeg):
mat2 will spit a warning when trying to process an .avi file
if ffmpeg isn't installed.
- Since metadata are obtained via exiftool, this commit
also refactors a bit our exfitool wrapper.
Diffstat (limited to 'libmat2/abstract.py')
| -rw-r--r-- | libmat2/abstract.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libmat2/abstract.py b/libmat2/abstract.py index 0084796..414a68b 100644 --- a/libmat2/abstract.py +++ b/libmat2/abstract.py | |||
| @@ -7,7 +7,8 @@ assert Set # make pyflakes happy | |||
| 7 | 7 | ||
| 8 | class AbstractParser(abc.ABC): | 8 | class AbstractParser(abc.ABC): |
| 9 | """ This is the base class of every parser. | 9 | """ This is the base class of every parser. |
| 10 | It might yield `ValueError` on instantiation on invalid files. | 10 | It might yield `ValueError` on instantiation on invalid files, |
| 11 | and `RuntimeError` when something went wrong in `remove_all`. | ||
| 11 | """ | 12 | """ |
| 12 | meta_list = set() # type: Set[str] | 13 | meta_list = set() # type: Set[str] |
| 13 | mimetypes = set() # type: Set[str] | 14 | mimetypes = set() # type: Set[str] |
| @@ -27,4 +28,7 @@ class AbstractParser(abc.ABC): | |||
| 27 | 28 | ||
| 28 | @abc.abstractmethod | 29 | @abc.abstractmethod |
| 29 | def remove_all(self) -> bool: | 30 | def remove_all(self) -> bool: |
| 31 | """ | ||
| 32 | :raises RuntimeError: Raised if the cleaning process went wrong. | ||
| 33 | """ | ||
| 30 | pass # pragma: no cover | 34 | pass # pragma: no cover |
