diff --git a/contrib/tools/archive/nntparchive/archiver.py b/contrib/tools/archive/nntparchive/archiver.py index b5dbdb5..3ba4e95 100755 --- a/contrib/tools/archive/nntparchive/archiver.py +++ b/contrib/tools/archive/nntparchive/archiver.py @@ -83,7 +83,10 @@ class Article: msg += '\n' msg += self.message() + '\n' msg += '--{}\n'.format(self.boundary) - msg += 'Content-Type: image/{}\n'.format(self.j['ext']) + mtype = 'image' + if self.j['ext'] in ['.mp4', '.webm']: + mtype = 'video' + msg += 'Content-Type: {}/{}\n'.format(mtype, self.j['ext']) msg += 'Content-Disposition: form-data; filename="{}{}"; name="import"\n'.format(self.j['filename'], self.j['ext']) msg += 'Content-Transfer-Encoding: base64\n' msg += '\n'