feat: Implement main playlist restrictions; add internal method for sound addition and update tests
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user