feat: Implement main playlist restrictions; add internal method for sound addition and update tests
Some checks failed
Backend CI / test (push) Has been cancelled
Backend CI / lint (push) Has been cancelled

This commit is contained in:
JSC
2025-08-16 00:51:38 +02:00
parent 4cec3b9d18
commit a109a88eed
4 changed files with 155 additions and 55 deletions

View File

@@ -508,7 +508,9 @@ class ExtractionService:
async def _add_to_main_playlist(self, sound_id: int, user_id: int) -> None:
"""Add the sound to the user's main playlist."""
try:
await self.playlist_service.add_sound_to_main_playlist(sound_id, user_id)
await self.playlist_service._add_sound_to_main_playlist_internal( # noqa: SLF001
sound_id, user_id,
)
logger.info(
"Added sound %d to main playlist for user %d",
sound_id,