Skip to content

Commit 148c06e

Browse files
committed
BugFix: mime_type for notify with gmail
1 parent 3cbca58 commit 148c06e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

script/onedrive.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from os.path import exists
22

3+
import magic
34
import onedrivesdk
45
from onedrivesdk.helpers import GetAuthCodeServer
56

@@ -24,6 +25,7 @@ def __guess_info(self, file_path):
2425
self.info = {
2526
'path': file_path,
2627
'name': file_path.split('/')[-1],
28+
'mime_type': magic.from_file(file_path, mime=True),
2729
}
2830
log_info('[+] new file upload on OneDrive:')
2931
log_info(self.info['name'])

0 commit comments

Comments
 (0)