debug radio paradise

This commit is contained in:
2025-10-18 22:46:55 +02:00
parent 3ae20d0e3a
commit f00260ac4d
10 changed files with 12 additions and 12 deletions

BIN
.DS_Store vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -154,14 +154,14 @@ export async function consolidateCache(): Promise<void> {
* Génère l'URL pour streamer une piste
*/
export function getTrackUrl(pk: string): string {
return `/audio/tracks/${pk}`;
return `/audio/flac/${pk}`;
}
/**
* Génère l'URL pour télécharger la piste originale
*/
export function getOriginalTrackUrl(pk: string): string {
return `/audio/tracks/${pk}/orig`;
return `/audio/flac/${pk}/orig`;
}
/**

View File

@@ -114,7 +114,7 @@ export async function consolidateCache(): Promise<void> {
*/
export function getImageUrl(pk: string, size?: number): string {
if (size) {
return `/covers/images/${pk}/${size}`;
return `/covers/image/${pk}/${size}`;
}
return `/covers/images/${pk}`;
return `/covers/image/${pk}`;
}

View File

@@ -21,7 +21,7 @@ impl CacheConfig for AudioConfig {
}
fn cache_type() -> &'static str {
"audio"
"flac"
}
fn cache_name() -> &'static str {

View File

@@ -64,10 +64,10 @@ Consolide le cache (répare les incohérences)
## Servir les fichiers
### GET /audio/tracks/{pk}
### GET /audio/flac/{pk}
Récupère le fichier FLAC (streaming progressif si en cours de téléchargement)
### GET /audio/tracks/{pk}/orig
### GET /audio/flac/{pk}/orig
Alias pour le fichier original
## Format des fichiers

View File

@@ -433,7 +433,7 @@ impl Config {
pub fn get_log_min_level(&self) -> Result<String> {
match self.get_value(&["host", "logger", "min_level"])? {
Value::String(s) => Ok(s),
_ => Ok("INFO".to_string()),
_ => Ok("TRACE".to_string()),
}
}

View File

@@ -261,9 +261,9 @@ pub fn init_logging() -> LogState {
let log_level = match config.get_log_min_level() {
Ok(l) => match string_to_level(&l) {
Some(lev) => level_to_levelfilter(lev),
None => LevelFilter::INFO,
None => LevelFilter::TRACE,
}
Err(_) => LevelFilter::INFO
Err(_) => LevelFilter::TRACE
};
let (filter, reload_handle) = reload::Layer::new(log_level);

View File

@@ -1,6 +1,6 @@
use std::sync::Arc;
use tracing::{debug, trace};
use tracing::{debug, info, trace};
use xmltree::{Element, XMLNode};
use crate::{
@@ -75,7 +75,7 @@ impl Action {
action_handler!(|instance| {
use crate::UpnpTypedInstance;
debug!("🎬 Action '{}' called", instance.get_name());
info!("🎬 Action '{}' called", instance.get_name());
// Logger les arguments d'entrée (déjà stockés dans les variables par run())
for arg_inst in instance.arguments_set().all() {