summaryrefslogtreecommitdiff
path: root/MAT/mat.py
diff options
context:
space:
mode:
authorjvoisin2012-12-20 18:08:44 +0100
committerjvoisin2012-12-20 18:08:44 +0100
commitce6c61bd56b126742cc95435945c13bfa8671b28 (patch)
tree8eb5a98a6598e9448c3cdc19a6999094f3a7b65f /MAT/mat.py
parent6be21f0acb7c540fad89b6c0b9b54197a435238f (diff)
parent893ce1a7ce01a1983b3605e424775df6500c2608 (diff)
Merge branch 'master' into gui_options
Conflicts: mat-gui
Diffstat (limited to 'MAT/mat.py')
-rw-r--r--MAT/mat.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/MAT/mat.py b/MAT/mat.py
index 4c12333..84f26f2 100644
--- a/MAT/mat.py
+++ b/MAT/mat.py
@@ -102,7 +102,7 @@ def secure_remove(filename):
102 logging.error('Unable to remove %s' % filename) 102 logging.error('Unable to remove %s' % filename)
103 103
104 104
105def create_class_file(name, backup, add2archive): 105def create_class_file(name, backup, **kwargs):
106 ''' 106 '''
107 return a $FILETYPEStripper() class, 107 return a $FILETYPEStripper() class,
108 corresponding to the filetype of the given file 108 corresponding to the filetype of the given file
@@ -149,4 +149,7 @@ def create_class_file(name, backup, add2archive):
149 logging.info('Don\'t have stripper for %s format' % mime) 149 logging.info('Don\'t have stripper for %s format' % mime)
150 return None 150 return None
151 151
152 return stripper_class(filename, parser, mime, backup, add2archive) 152 if mime.endswith('pdf') and mime.startswith('application/'):
153 return stripper_class(filename, parser, mime, backup, **kwargs)
154
155 return stripper_class(filename, parser, mime, backup, **kwargs)