From 572fbe10d45d9debfd04edaa088e2cdd93926e7e Mon Sep 17 00:00:00 2001 From: PossiblePanda <85448494+PossiblePanda@users.noreply.github.com> Date: Fri, 31 May 2024 14:26:32 -0400 Subject: [PATCH 1/3] Added various file formats to constants.py --- tagstudio/src/core/constants.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tagstudio/src/core/constants.py b/tagstudio/src/core/constants.py index 8c3f6541e..c45eee721 100644 --- a/tagstudio/src/core/constants.py +++ b/tagstudio/src/core/constants.py @@ -29,7 +29,7 @@ ".j2k", ".jpg2", ] -RAW_IMAGE_TYPES: list[str] = [".raw", ".dng", ".rw2", ".nef", ".arw", ".crw", ".cr3"] +RAW_IMAGE_TYPES: list[str] = [".raw", ".dng", ".rw2", ".nef", ".arw", ".crw", ".cr3", ".cr2"] VIDEO_TYPES: list[str] = [ ".mp4", ".webm", @@ -86,8 +86,8 @@ ] SPREADSHEET_TYPES: list[str] = [".csv", ".xls", ".xlsx", ".numbers", ".ods"] PRESENTATION_TYPES: list[str] = [".ppt", ".pptx", ".key", ".odp"] -ARCHIVE_TYPES: list[str] = [".zip", ".rar", ".tar", ".tar", ".gz", ".tgz", ".7z"] -PROGRAM_TYPES: list[str] = [".exe", ".app"] +ARCHIVE_TYPES: list[str] = [".zip", ".rar", ".tar", ".tar", ".gz", ".tgz", ".7z", ".s7z", ".dmg"] +PROGRAM_TYPES: list[str] = [".exe", ".app", ".jar", ".msi"] SHORTCUT_TYPES: list[str] = [".lnk", ".desktop", ".url"] ALL_FILE_TYPES: list[str] = ( From 935b1d83ef58a90f4ab8cb43cbef6273499aeac5 Mon Sep 17 00:00:00 2001 From: PossiblePanda <85448494+PossiblePanda@users.noreply.github.com> Date: Tue, 4 Jun 2024 17:06:19 -0400 Subject: [PATCH 2/3] Update tagstudio/src/core/constants.py Co-authored-by: Travis Abendshien <46939827+CyanVoxel@users.noreply.github.com> --- tagstudio/src/core/constants.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tagstudio/src/core/constants.py b/tagstudio/src/core/constants.py index c45eee721..60217ada4 100644 --- a/tagstudio/src/core/constants.py +++ b/tagstudio/src/core/constants.py @@ -29,7 +29,16 @@ ".j2k", ".jpg2", ] -RAW_IMAGE_TYPES: list[str] = [".raw", ".dng", ".rw2", ".nef", ".arw", ".crw", ".cr3", ".cr2"] +RAW_IMAGE_TYPES: list[str] = [ + ".raw", + ".dng", + ".rw2", + ".nef", + ".arw", + ".crw", + ".cr2", + ".cr3", +] VIDEO_TYPES: list[str] = [ ".mp4", ".webm", From 96561938f409c07118b263ec7a71c0b1debb9354 Mon Sep 17 00:00:00 2001 From: PossiblePanda <85448494+PossiblePanda@users.noreply.github.com> Date: Tue, 4 Jun 2024 17:06:38 -0400 Subject: [PATCH 3/3] Update tagstudio/src/core/constants.py Co-authored-by: Travis Abendshien <46939827+CyanVoxel@users.noreply.github.com> --- tagstudio/src/core/constants.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tagstudio/src/core/constants.py b/tagstudio/src/core/constants.py index 60217ada4..a4f3e267b 100644 --- a/tagstudio/src/core/constants.py +++ b/tagstudio/src/core/constants.py @@ -95,8 +95,17 @@ ] SPREADSHEET_TYPES: list[str] = [".csv", ".xls", ".xlsx", ".numbers", ".ods"] PRESENTATION_TYPES: list[str] = [".ppt", ".pptx", ".key", ".odp"] -ARCHIVE_TYPES: list[str] = [".zip", ".rar", ".tar", ".tar", ".gz", ".tgz", ".7z", ".s7z", ".dmg"] -PROGRAM_TYPES: list[str] = [".exe", ".app", ".jar", ".msi"] +ARCHIVE_TYPES: list[str] = [ + ".zip", + ".rar", + ".tar", + ".tar", + ".gz", + ".tgz", + ".7z", + ".s7z", +] +PROGRAM_TYPES: list[str] = [".exe", ".app"] SHORTCUT_TYPES: list[str] = [".lnk", ".desktop", ".url"] ALL_FILE_TYPES: list[str] = (