From ef1d638d3203cfc6432660fd8def35328d852c3e Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Tue, 07 Apr 2009 09:02:14 +0000 Subject: Try to get a more meaningful mime type than application/x-zip #541 --- diff --git a/downloadmanager.py b/downloadmanager.py index e41d06f..69d1c8a 100644 --- a/downloadmanager.py +++ b/downloadmanager.py @@ -180,7 +180,8 @@ class Download: self.dl_jobject.metadata['progress'] = '100' self.dl_jobject.file_path = self._target_file.path - if self._mime_type == 'application/octet-stream': + if self._mime_type in ['application/octet-stream', + 'application/x-zip']: sniffed_mime_type = mime.get_for_file(self._target_file.path) self.dl_jobject.metadata['mime_type'] = sniffed_mime_type -- cgit v0.9.1