From 2f7ffbbfe438085df6fb489cd42fc0f7576267f0 Mon Sep 17 00:00:00 2001 From: JSC Date: Sat, 5 Jul 2025 08:36:59 +0200 Subject: [PATCH] refactor(vlc_service): remove unused parameters ip_address and user_agent from play_sound method --- app/services/vlc_service.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/services/vlc_service.py b/app/services/vlc_service.py index 598a582..d955a8c 100644 --- a/app/services/vlc_service.py +++ b/app/services/vlc_service.py @@ -20,7 +20,7 @@ class VLCService: self.processes: Dict[str, subprocess.Popen] = {} self.lock = threading.Lock() - def play_sound(self, sound_id: int, user_id: int | None = None, ip_address: str | None = None, user_agent: str | None = None) -> bool: + def play_sound(self, sound_id: int, user_id: int | None = None) -> bool: """Play a sound by ID using VLC subprocess.""" try: # Get sound from database @@ -86,8 +86,6 @@ class VLCService: SoundPlayed.create_play_record( user_id=user_id, sound_id=sound_id, - ip_address=ip_address, - user_agent=user_agent, commit=True, ) except Exception as e: