most of program1 is done, shape of program2, actual app to be started

This commit is contained in:
Gabriel Radureau
2025-10-12 00:19:52 +02:00
parent 4f80b8b70d
commit 14a3392d41
8 changed files with 270 additions and 3 deletions

14
program2/program2.sh Executable file
View File

@@ -0,0 +1,14 @@
set -euo pipefail
SCRIPTS_DIR=$(dirname `realpath ${BASH_SOURCE[0]}`)
export DANCE_VIDEOS_DB="${HOME}/Documents/.DanceVideos/db.sqlite"
export DOSSIER_PLAYLIST="$(dirname $DANCE_VIDEOS_DB)/playlists"
rm -rf $DOSSIER_PLAYLIST
export PLAYLIST_ALL=$DOSSIER_PLAYLIST/all
mkdir -p $PLAYLIST_ALL
for v in $(sqlite3 $DANCE_VIDEOS_DB "select rotated_file from videos"); do
ln -s $v $PLAYLIST_ALL/$(basename $(dirname $v)).mp4
done