feat: wire real YouTube adapter into the registry
This commit is contained in:
@@ -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())]
|
||||
|
||||
Reference in New Issue
Block a user