feat: yt playlist generator from music file

This commit is contained in:
ange 2025-06-20 07:02:15 +00:00
parent fd6def1ae1
commit 40b8304dce
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
3 changed files with 229 additions and 1 deletions

View file

@ -29,7 +29,7 @@ if [ "$1" == update ]; then
fi
profile="$ff/$(sed -n '/^\[Install/,/^Default=/s/.*=//p' "$ff/profiles.ini")"
if ! fuser -s "$profile"; then
if ! fuser -s "$profile/places.sqlite"; then
for i in "${!sites[@]}"; do
sq+="INSERT INTO moz_perms VALUES($i,'${sites[$i]}','cookie',1,0,0,0);"
done

5
.local/bin/music Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash -eu
BASE_URL="https://www.youtube.com/watch_videos?video_ids="
$BROWSER "$BASE_URL$(awk '{print $1}' "$XDG_CONFIG_HOME/music" | shuf | paste -sd,)"