Commit Graph

16 Commits

Author SHA1 Message Date
3f9798be9b Amélioration de la vue playlist 2025-12-17 20:37:01 +01:00
7de0008cc8 Une API Rest pour pmoplaylist 2025-12-17 15:12:12 +01:00
1bf34fe949 no local cache 2025-12-17 14:25:24 +01:00
ca36a102e5 Amélioration des pmoplaylist 2025-12-17 08:47:07 +01:00
d6920703a1 Amélioration des pmoplaylist 2025-12-17 08:32:09 +01:00
90399b408a correction for lazy playlist and lazy cache 2025-12-15 12:17:33 +01:00
7389c55970 Lazy cache 2025-12-12 21:42:21 +00:00
0a03f72467 Changement du mécanisme d'attention sur les channels Radio Paradise. 2025-12-06 12:48:21 +01:00
cf3f0afde4 Les playlists suivent la lecture de leurs morceaux. 2025-12-06 12:48:21 +01:00
a559375176 Ajout la playlist live 2025-12-06 12:48:21 +01:00
3d1673157b debug media server suite 2025-12-06 12:48:21 +01:00
9bc0c2544d Round 3 2025-11-17 21:30:26 +01:00
Claude
e06a8d95df Déplacer cache registry dans les crates individuelles (pattern singleton)
Au lieu d'avoir un cache_registry centralisé dans pmoupnp qui créait
des dépendances circulaires, chaque crate a maintenant son propre
singleton global :

- pmoaudiocache : register_audio_cache() + get_audio_cache()
- pmocovers : register_cover_cache() + get_cover_cache()

Changes:
- Add singleton pattern to pmoaudiocache/src/lib.rs
- Add singleton pattern to pmocovers/src/lib.rs
- Add once_cell dependency to both crates
- Update pmoplaylist to use pmoaudiocache::get_audio_cache() as fallback
- Update pmoupnp/upnp_server.rs to use register_* functions
- Update pmoupnp/lib.rs to reexport only get_* (not register_*)
- Remove pmoupnp/src/cache_registry.rs (no longer needed)

pmoupnp réexporte get_audio_cache() et get_cover_cache() pour
compatibilité avec le code existant (pmosource, etc.).
2025-11-05 20:48:52 +00:00
Claude
a6cb7ac5e1 Add register_audio_cache to pmoplaylist (fix circular dependency)
Fix "PlaylistManager not initialized" error without creating circular
dependency between pmoparadise and pmoupnp.

Changes:
- Add AUDIO_CACHE static to pmoplaylist/manager.rs
- Add register_audio_cache() function to register cache
- Export register_audio_cache from pmoplaylist lib.rs
- Update audio_cache() to check local registry first, then pmoupnp
- Update play_and_cache example to use pmoplaylist::register_audio_cache
- Remove pmoupnp::register_*_cache functions (not needed)

The example now calls pmoplaylist::register_audio_cache() to make
the cache available for pk validation in WriteHandle::push().
2025-11-05 20:04:08 +00:00
28381bf19e Refactoring de pmoflac -factorisation de code ogg et opus 2025-10-29 22:36:36 +01:00
92c35116f8 la crate des playlists 2025-10-29 22:36:36 +01:00