feat: wire real YouTube adapter into the registry

This commit is contained in:
Jonathan
2026-07-10 21:29:26 +02:00
parent a93c248aaf
commit 4b2b2888ca
2 changed files with 19 additions and 10 deletions
+6 -5
View File
@@ -1,11 +1,12 @@
from lyra_worker.adapters._ytdlp import YtDlpClient
from lyra_worker.adapters.base import SourceAdapter
from lyra_worker.adapters.fakes import FakeQobuz, FakeSoulseek, FakeYouTube
from lyra_worker.adapters.youtube import YouTubeAdapter
def build_adapters() -> list[SourceAdapter]:
"""The enabled source adapters, best-tier first.
"""The enabled real source adapters, best-tier first.
SWAP POINT: Plan 3 replaces these fakes with real Qobuz/Soulseek/YouTube
adapters (reading credentials from config). Nothing else in the pipeline changes.
Only real, usable adapters are returned. Plan 3c/3d add Qobuz (streamrip)
and Soulseek (slskd), each gated on its config being present via health().
"""
return [FakeQobuz(), FakeSoulseek(), FakeYouTube()]
return [YouTubeAdapter(YtDlpClient())]