Compare commits
2 Commits
09fea918af
...
743a51a846
Author | SHA1 | Date | |
---|---|---|---|
743a51a846 | |||
7cd05447e0 |
@ -21,3 +21,5 @@ fi
|
||||
cat append.txt | wget-titles-from-urls >> titles.txt
|
||||
cat append.txt | youtube-audio
|
||||
> append.txt
|
||||
|
||||
standardize-music
|
||||
|
@ -1,32 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# rename .MKV -> .MKV
|
||||
count=`ls -1 *.JPG 2>/dev/null | wc -l`
|
||||
if [ $count != 0 ]; then
|
||||
rename MKV mkv *.MKV
|
||||
fi
|
||||
|
||||
# convert to opus
|
||||
count=`ls -1 *.mkv 2>/dev/null | wc -l`
|
||||
if [ $count != 0 ]; then
|
||||
for i in *.mkv; do
|
||||
ffmpeg -i "$i" "${i%.mkv}.opus";
|
||||
rm "$i";
|
||||
done
|
||||
fi
|
||||
|
||||
# rename .WEBM -> .webm
|
||||
count=`ls -1 *.WEBM 2>/dev/null | wc -l`
|
||||
if [ $count != 0 ]; then
|
||||
rename WEBM webm *.WEBM
|
||||
fi
|
||||
|
||||
# convert to opus
|
||||
count=`ls -1 *.webm 2>/dev/null | wc -l`
|
||||
if [ $count != 0 ]; then
|
||||
for i in *.webm; do
|
||||
ffmpeg -i "$i" "${i%.webm}.opus";
|
||||
rm "$i";
|
||||
done
|
||||
fi
|
||||
|
@ -1,12 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
set -euox pipefail
|
||||
|
||||
pkill -f blueman-manager || true
|
||||
|
||||
echo stopping bluetooth...
|
||||
sudo systemctl stop bluetooth-autoconnect
|
||||
sudo systemctl stop bluetooth
|
||||
sudo rmmod btusb
|
||||
sudo modprobe -r btusb
|
||||
|
||||
echo starting bluetooth...
|
||||
sudo modprobe btusb
|
||||
sudo systemctl start bluetooth
|
||||
sudo systemctl start bluetooth-autoconnect
|
||||
sudo rfkill unblock bluetooth
|
||||
|
41
home/default/scripts/standardize-music
Executable file
41
home/default/scripts/standardize-music
Executable file
@ -0,0 +1,41 @@
|
||||
#!/usr/bin/env sh
|
||||
set -oux pipefail
|
||||
|
||||
# removes more modern codecs to just files that can fit on my mp3 player
|
||||
|
||||
count=`ls -1 *.M4A 2>/dev/null | wc -l`
|
||||
if [ $count != 0 ]; then
|
||||
rename M4A m4a *.M4A
|
||||
fi
|
||||
|
||||
count=`ls -1 *.m4a 2>/dev/null | wc -l`
|
||||
if [ $count != 0 ]; then
|
||||
for i in *.m4a; do
|
||||
ffmpeg -i "$i" "${i%.*}.ogg" && rm "$i"
|
||||
done
|
||||
fi
|
||||
|
||||
count=`ls -1 *.WEBM 2>/dev/null | wc -l`
|
||||
if [ $count != 0 ]; then
|
||||
rename WEBM webm *.WEBM
|
||||
fi
|
||||
|
||||
count=`ls -1 *.webm 2>/dev/null | wc -l`
|
||||
if [ $count != 0 ]; then
|
||||
for i in *.webm; do
|
||||
ffmpeg -i "$i" "${i%.*}.ogg" && rm "$i"
|
||||
done
|
||||
fi
|
||||
|
||||
count=`ls -1 *.OPUS 2>/dev/null | wc -l`
|
||||
if [ $count != 0 ]; then
|
||||
rename OPUS opus *.OPUS
|
||||
fi
|
||||
|
||||
count=`ls -1 *.opus 2>/dev/null | wc -l`
|
||||
if [ $count != 0 ]; then
|
||||
for i in *.opus; do
|
||||
ffmpeg -i "$i" "${i%.*}.ogg" && rm "$i"
|
||||
done
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user