feat: yt playlist generator from music file
This commit is contained in:
parent
fd6def1ae1
commit
40b8304dce
3 changed files with 229 additions and 1 deletions
|
@ -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
5
.local/bin/music
Executable 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,)"
|
Loading…
Add table
Add a link
Reference in a new issue