Ajout de la source Radio France avec : - Implémentation du trait MusicSource pour l'intégration UPnP - Routes HTTP API REST pour l'accès aux stations et flux AAC - Proxy streaming avec tracking des connexions - Génération dynamique de l'arborescence UPnP - Cache multi-niveaux (stations, métadonnées, covers) - Support des ~70 stations (standalone, groupes, radios ICI) Fichiers créés : - pmoradiofrance/src/source.rs (implémentation MusicSource) - pmoradiofrance/src/server_ext.rs (routes HTTP et proxy streaming) - pmoradiofrance/assets/radiofrance-logo.webp (logo placeholder) Fichiers modifiés : - pmoradiofrance/src/lib.rs (re-exports et modules) - pmoradiofrance/Cargo.toml (dépendances server) - Cargo.toml (workspace) - pmomediaserver/Cargo.toml (feature radiofrance) - PMOMusic/Cargo.toml (feature radiofrance) - PMOMusic/src/main.rs (enregistrement automatique) Tests et validation : compilation OK, pattern respecté, feature-gating cohérent
17 lines
553 B
Bash
Executable File
17 lines
553 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Create a simple PNG first, then convert to WebP
|
|
# Since we don't have image tools, we'll create a minimal valid WebP file
|
|
|
|
# Create a minimal 1x1 red WebP image (Radio France red: #e20613)
|
|
# This is a hex dump of a minimal WebP file
|
|
cat > radiofrance-logo.webp << 'WEBP'
|
|
UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA=
|
|
WEBP
|
|
|
|
# Decode from base64
|
|
base64 -d -i radiofrance-logo.webp > radiofrance-logo-tmp.webp 2>/dev/null
|
|
mv radiofrance-logo-tmp.webp radiofrance-logo.webp 2>/dev/null || true
|
|
|
|
echo "WebP placeholder created"
|