Optimisation de music-convert
This commit is contained in:
parent
a900bd2a2d
commit
55f1a1657f
3 changed files with 15 additions and 11 deletions
|
@ -40,6 +40,8 @@ warnaboutpackageupdates =
|
|||
sudoloopinterval = 30
|
||||
pacmanpath = pacman
|
||||
privilegeescalationtool = sudo
|
||||
privilegeescalationtarget = pikaur
|
||||
userid = 0
|
||||
|
||||
[network]
|
||||
aururl = https://aur.archlinux.org
|
||||
|
|
|
@ -321,6 +321,7 @@ set nested_ranger_warning true
|
|||
# setlocal path=~/downloads sort mtime
|
||||
# setlocal path=~/mnt preview_max_size 52428800
|
||||
setlocal path=~/mnt preview_directories false
|
||||
setlocal path=~/mnt/seedbox sort_directories_first false
|
||||
setlocal path=~/cache/ranger use_preview_script false
|
||||
setlocal path=~/cache/ranger preview_images false
|
||||
|
||||
|
@ -368,7 +369,8 @@ map <A-k> scroll_preview -1
|
|||
map ? help
|
||||
map W display_log
|
||||
map w taskview_open
|
||||
map S shell $SHELL
|
||||
#map S shell $SHELL
|
||||
map S shell fish
|
||||
|
||||
map : console
|
||||
map ; console
|
||||
|
|
|
@ -44,19 +44,19 @@ do
|
|||
continue
|
||||
fi
|
||||
|
||||
# Définition du fichier de destination
|
||||
dstfile="${file%.*}.opus"
|
||||
|
||||
# Passe les fichiers déjà traités
|
||||
if [[ "${dstdir}${dstfile}" -nt "${file}" ]]
|
||||
then
|
||||
echo "[${blue}SKIP${reset}] ${dir#./}$file"
|
||||
continue
|
||||
fi
|
||||
|
||||
# Converti uniquement les vidéos
|
||||
if [[ "$(file --mime-type -b -e ascii -e compress -e tar -e cdf "$file")" =~ video/ ]]
|
||||
then
|
||||
# Définition du fichier de destination
|
||||
dstfile="${file%.*}.opus"
|
||||
|
||||
# Passe les fichiers déjà traités
|
||||
if [[ "${dstdir}${dstfile}" -nt "${file}" ]]
|
||||
then
|
||||
echo "[${blue}SKIP${reset}] ${dir#./}$file"
|
||||
continue
|
||||
fi
|
||||
|
||||
# Parallélisation des conversions
|
||||
declare -a running
|
||||
|
||||
|
|
Loading…
Reference in a new issue