mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Compare commits
No commits in common. "1d1c9dd1a8877ecb424f3a3c19b9024f7e66fb1b" and "b7da698d004ffbcd323cc47257a1e5c66049a79f" have entirely different histories.
1d1c9dd1a8
...
b7da698d00
@ -130,10 +130,13 @@ cmd bulkrename ${{
|
|||||||
lf -remote "send $id unselect"
|
lf -remote "send $id unselect"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
||||||
cmd encodetomp3 ${{
|
cmd encodetomp3 ${{
|
||||||
clear;
|
clear;
|
||||||
set -f;
|
set -f;
|
||||||
|
|
||||||
|
is_valid_filetype=0;
|
||||||
|
|
||||||
#Variables for notify-send
|
#Variables for notify-send
|
||||||
converted_filenames="";
|
converted_filenames="";
|
||||||
converted_files_count=0;
|
converted_files_count=0;
|
||||||
@ -142,12 +145,18 @@ cmd encodetomp3 ${{
|
|||||||
|
|
||||||
for pickedFilepath in $fx; do
|
for pickedFilepath in $fx; do
|
||||||
case $pickedFilepath in
|
case $pickedFilepath in
|
||||||
*.mp4 | *.webm | *.mkv)
|
*.mp4)
|
||||||
;;
|
is_valid_filetype=1 ;;
|
||||||
*)
|
*.webm)
|
||||||
echo 'Skipping ${pickedFilepath}' && continue 1;;
|
is_valid_filetype=1 ;;
|
||||||
|
*.mkv)
|
||||||
|
is_valid_filetype=1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [[ is_valid_filetype -eq 0 ]]; then
|
||||||
|
echo 'Skipping ${pickedFilepath}' && continue 1 ;
|
||||||
|
fi;
|
||||||
|
|
||||||
parsed_MP3=$(echo "$pickedFilepath" | sed 's/\(.mp4\|.webm\|.mkv\)/.mp3/' | sed 's|.*\/||');
|
parsed_MP3=$(echo "$pickedFilepath" | sed 's/\(.mp4\|.webm\|.mkv\)/.mp3/' | sed 's|.*\/||');
|
||||||
parsed_MP3="~/Music/${parsed_MP3}";
|
parsed_MP3="~/Music/${parsed_MP3}";
|
||||||
|
|
||||||
@ -172,12 +181,12 @@ cmd encodetomp3 ${{
|
|||||||
#Notify the results to the user
|
#Notify the results to the user
|
||||||
if [[ $converted_files_count -gt 0 ]]; then
|
if [[ $converted_files_count -gt 0 ]]; then
|
||||||
converted_filenames=$(echo "$converted_filenames" | sed 's|.*\/||');
|
converted_filenames=$(echo "$converted_filenames" | sed 's|.*\/||');
|
||||||
notify-send "Converted MP3 Files($converted_files_count):" "$converted_filenames";
|
notify-send "Converted MP3 Files($converted_files_count): $converted_filenames";
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
if [[ $videos_without_audio_streams_count -gt 0 ]]; then
|
if [[ $videos_without_audio_streams_count -gt 0 ]]; then
|
||||||
videos_without_audio_streams=$(echo "$videos_without_audio_streams" | sed 's|.*\/||');
|
videos_without_audio_streams=$(echo "$videos_without_audio_streams" | sed 's|.*\/||');
|
||||||
notify-send "Videos without audio stream($videos_without_audio_streams_count):" "$videos_without_audio_streams";
|
notify-send "Videos without audio stream($videos_without_audio_streams_count): $videos_without_audio_streams";
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
#Uncomment the below line if you want to automatically unselect the original converted video files
|
#Uncomment the below line if you want to automatically unselect the original converted video files
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user