Browse Source

more extensions for file size macro

Thomas Buck 6 years ago
parent
commit
49d5aa3499
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      macros.py

+ 1
- 1
macros.py View File

239
     fp.close()
239
     fp.close()
240
 
240
 
241
 def hook_postconvert_size():
241
 def hook_postconvert_size():
242
-    file_ext = '|'.join(['pdf', 'zip', 'rar', 'odp', 'exe', 'brd', 'mp3', 'mp4', 'plist']).encode("utf-8")
242
+    file_ext = '|'.join(['pdf', 'zip', 'rar', 'ods', 'odt', 'odp', 'doc', 'xls', 'ppt', 'docx', 'xlsx', 'pptx', 'exe', 'brd', 'mp3', 'mp4', 'plist'])
243
     def matched_link(matchobj):
243
     def matched_link(matchobj):
244
         try:
244
         try:
245
             path = matchobj.group(1)
245
             path = matchobj.group(1)

Loading…
Cancel
Save