Add more detection format extensions
This commit is contained in:
parent
e2f294877c
commit
994aaa64e5
|
@ -57,7 +57,8 @@ function convertText() {
|
|||
# Syntax: listArchives <directory>
|
||||
function listArchives() {
|
||||
fail=1
|
||||
formatFiles="mp3 wma ogg wav flac midi acc oga opus mp2 ra m4a mka ac3"
|
||||
formatFilesMayus="MP3 WMA OGG WAV FLAC MIDI ACC OGA OPUS MP2 RA M4A MKA AC3 AAC"
|
||||
formatFiles="${formatFilesMayus} mp3 wma ogg wav flac midi acc oga opus mp2 ra m4a mka ac3 aac"
|
||||
# Rename files
|
||||
cd "${1}"
|
||||
mkdir -p ${ksToolsTempFolder}
|
||||
|
|
28
src/ks-upf
28
src/ks-upf
|
@ -58,23 +58,33 @@ function convertText() {
|
|||
function listArchives() {
|
||||
fail=1
|
||||
formatFiles=""
|
||||
videoFiles="mp4 avi mpg mpeg mov wmv mkv ogv webm rm flv vob ts"
|
||||
videoFilesMayus="MP4 AVI MPG MPEG MOV WMV MKV OGV WEBM RM FLV VOB TS"
|
||||
videoFiles="${videoFilesMayus} mp4 avi mpg mpeg mov wmv mkv ogv webm rm flv vob ts"
|
||||
formatFiles="${formatFiles} ${videoFiles}"
|
||||
audioFiles="mp3 wma ogg wav flac midi acc oga opus mp2 ra m4a mka ac3"
|
||||
audioFilesMayus="MP3 WMA OGG WAV FLAC MIDI ACC OGA OPUS MP2 RA M4A MKA AC3 AAC"
|
||||
audioFiles="${audioFilesMayus} mp3 wma ogg wav flac midi acc oga opus mp2 ra m4a mka ac3 aac"
|
||||
formatFiles="${formatFiles} ${audioFiles}"
|
||||
compressFiles="zip rar 7z bz2 gz xz tar bzip2 gzip"
|
||||
compressFilesMayus="ZIP RAR 7Z BZ2 GZ XZ TAR BZIP2 GZIP ZST LZMA"
|
||||
compressFiles="${compressFilesMayus} zip rar 7z bz2 gz xz tar bzip2 gzip zst lzma"
|
||||
formatFiles="${formatFiles} ${compressFiles}"
|
||||
open_libreOfficeFiles="odt ods odp odb odg"
|
||||
open_libreOfficeFilesMayus="ODT ODS ODP ODB ODG"
|
||||
open_libreOfficeFiles="${open_libreOfficeFilesMayus} odt ods odp odb odg"
|
||||
formatFiles="${formatFiles} ${open_libreOfficeFiles}"
|
||||
OfficeFiles="doc docx dotx dot docm dic thmx xlsx ppt pps pst mbd accdb msg"
|
||||
OfficeFilesMayus="DOC DOCX DOTX DOT DOCM DIC THMX XLSX PPT PPTX PPS PST MBD ACCDB MSG"
|
||||
OfficeFiles="${OfficeFilesMayus} doc docx dotx dot docm dic thmx xlsx ppt pps pptx pst mbd accdb msg"
|
||||
formatFiles="${formatFiles} ${OfficeFiles}"
|
||||
documentFiles="txt pdf rtf html php xml json css"
|
||||
documentFilesMayus="TXT PDF RTF HTML PHP XML JSON JS CSS MD"
|
||||
documentFiles="${documentFilesMayus} txt pdf rtf html php xml json js css md"
|
||||
formatFiles="${formatFiles} ${documentFiles}"
|
||||
pictureFiles="png jpg jpeg gif bmp raw xcf ppm pnm tiff ico tga pbm pgm svg psd"
|
||||
pictureFilesMayus="PNG JPG JPEG GIF BMP RAW XCF PPM PNM TIFF ICO TGA PBM PGM SVG PSD"
|
||||
pictureFiles="${pictureFilesMayus} png jpg jpeg gif bmp raw xcf ppm pnm tiff ico tga pbm pgm svg psd"
|
||||
formatFiles="${formatFiles} ${pictureFiles}"
|
||||
executableFiles="exe msi run bin elf dmg deb rpm tgz ebuild flatpakref snap sh bash cmd bat AppImage jar"
|
||||
executableFilesMayus="EXE MSI RUN BIN ELF DMG DEB RPM TGZ EBUILD FLATPAKREF SNAP SH BASH ZSH CMD BAT APPIMAGE JAR"
|
||||
executableFiles="${executableFilesMayus} exe msi run bin elf dmg deb rpm tgz ebuild flatpakref snap sh bash zsh cmd bat AppImage jar"
|
||||
formatFiles="${formatFiles} ${executableFiles}"
|
||||
otherFiles="desktop lnk blend db c cpp cxx cc py rb dll so link network service ko list java"
|
||||
otherFilesMayus="DEKSTOP LNK BLEND DB C CPP CXX CC PY RB DLL SO LINK NETWORK SERVICE KO LIST JAVA"
|
||||
otherFiles="${otherFilesMayus} desktop lnk blend db c cpp cxx cc py rb dll so link network service ko list java"
|
||||
|
||||
formatFiles="${formatFiles} ${otherFiles}"
|
||||
# Rename files
|
||||
cd "${1}"
|
||||
|
|
|
@ -57,7 +57,8 @@ function convertText() {
|
|||
# Syntax: listArchives <directory>
|
||||
function listArchives() {
|
||||
fail=1
|
||||
formatFiles="mp4 avi mpg mpeg mov wmv mkv ogv webm rm flv vob ts"
|
||||
formatFilesMayus="MP4 AVI MPG MPEG MOV WMV MKV OGV WEBM RM FLV VOB TS"
|
||||
formatFiles="${formatFilesMayus} mp4 avi mpg mpeg mov wmv mkv ogv webm rm flv vob ts"
|
||||
# Rename files
|
||||
cd "${1}"
|
||||
mkdir -p ${ksToolsTempFolder}
|
||||
|
|
Loading…
Reference in New Issue
Block a user