1
0
Fork 0

add check-pip-updates and convert-flacs-to-mp3

This commit is contained in:
dece 2022-10-01 16:30:03 +02:00
parent ddd46d6de7
commit bc4d708ea2
2 changed files with 13 additions and 0 deletions

6
check-pip-updates.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash -e
# Check available updates for manually installed Python packages.
table="$(pip list --user --outdated)"
echo "$table"
list="$(echo "$table" | tail -n +3 | awk '{print $1}' | tr '\n' ' ')"
echo "Update the all with: $ pip install -U $list"

7
convert-flacs-to-mp3.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash -ex
# Convert FLACs in a directory to MP3 files (V0, but configure it below).
# Requires fdfind and ffmpeg.
fdfind -t f -e flac . "$1" | while read -r flac; do
mp3="${flac/%flac/mp3}"
ffmpeg -i "$flac" -codec:a libmp3lame -q:a 0 "$mp3" && rm "$flac"
done