From 11f0c7f9b8003554dbfe14b640a788ee3a05a54b Mon Sep 17 00:00:00 2001 From: PossiblePanda <85448494+PossiblePanda@users.noreply.github.com> Date: Tue, 4 Jun 2024 17:13:57 -0400 Subject: [PATCH] Added various file formats to constants.py (#231) * Added various file formats to constants.py * Update tagstudio/src/core/constants.py Co-authored-by: Travis Abendshien <46939827+CyanVoxel@users.noreply.github.com> * Update tagstudio/src/core/constants.py Co-authored-by: Travis Abendshien <46939827+CyanVoxel@users.noreply.github.com> --------- Co-authored-by: Travis Abendshien <46939827+CyanVoxel@users.noreply.github.com> --- tagstudio/src/core/constants.py | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/tagstudio/src/core/constants.py b/tagstudio/src/core/constants.py index 8c3f6541..a4f3e267 100644 --- a/tagstudio/src/core/constants.py +++ b/tagstudio/src/core/constants.py @@ -29,7 +29,16 @@ IMAGE_TYPES: list[str] = [ ".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", + ".cr2", + ".cr3", +] VIDEO_TYPES: list[str] = [ ".mp4", ".webm", @@ -86,7 +95,16 @@ PLAINTEXT_TYPES: list[str] = [ ] 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"] +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"]