Fix: Do not enforce cache for every stream
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sat, 1 Mar 2025 13:27:34 +0000 (14:27 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Sat, 1 Mar 2025 13:27:34 +0000 (14:27 +0100)
commit3d8f497f9faa5dfabffa2299f1764e549bff4783
tree878d12faf42f34418874124df9fbf9c416315185
parent9137a9797a77690f6462d5beb23ffbe4f2ccb4a8
Fix: Do not enforce cache for every stream

ffmpeg is reading faster than the cache file gets written, causing streams to fail.
Waiting until the file is available, delays all streaming.
Revisit this later. For now only use caching when enforced by provider (apple music) or when we are preloading the next track so when you start a new track, speed is always preferred
music_assistant/helpers/audio.py