correct application of playlists rules

This commit is contained in:
Gabriel Radureau
2025-10-16 17:18:58 +02:00
parent d2e2028610
commit 78313ffbef
17 changed files with 1098 additions and 247 deletions

View File

@@ -18,9 +18,9 @@ mkdir -p "$DOSSIER_PLAYLIST"
# Pour chaque playlist, créer un dossier et ajouter les liens symboliques
sqlite3 -separator '|' "$DANCE_VIDEOS_DB" "
SELECT playlist_id, playlist_name, video_file_name, rotated_file
FROM playlist_videos
WHERE rotated_file IS NOT NULL;
SELECT pv.playlist_id, pv.playlist_name, pv.video_file_name, v.rotated_file
FROM playlist_videos pv JOIN videos v ON pv.video_file_name=v.file_name
WHERE v.rotated_file IS NOT NULL;
" | while IFS='|' read -r playlist_id playlist_name video_file_name rotated_file; do
# Sauter l'en-tête
if [[ "$playlist_id" == "playlist_id" ]]; then