Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite5b170f

Browse files
OidaTiftlajuzim
authored andcommitted
BugFix: mime_type for notify with gmail
1 parent77cdce9 commite5b170f

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
fromos.pathimportexists
22

3+
importmagic
34
importonedrivesdk
45
fromonedrivesdk.helpersimportGetAuthCodeServer
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)

[8]ページ先頭

©2009-2025 Movatter.jp