refactor: Rename global current playlist methods for clarity and consistency
This commit is contained in:
@@ -189,9 +189,7 @@ class PlayerService:
|
||||
await self._broadcast_state()
|
||||
|
||||
sound_name = (
|
||||
self.state.current_sound.name
|
||||
if self.state.current_sound
|
||||
else "Unknown"
|
||||
self.state.current_sound.name if self.state.current_sound else "Unknown"
|
||||
)
|
||||
logger.info("Resumed playing sound: %s", sound_name)
|
||||
else:
|
||||
@@ -388,7 +386,7 @@ class PlayerService:
|
||||
session = self.db_session_factory()
|
||||
try:
|
||||
playlist_repo = PlaylistRepository(session)
|
||||
current_playlist = await playlist_repo.get_main_playlist()
|
||||
current_playlist = await playlist_repo.get_current_playlist()
|
||||
|
||||
if current_playlist and current_playlist.id:
|
||||
sounds = await playlist_repo.get_playlist_sounds(current_playlist.id)
|
||||
|
||||
Reference in New Issue
Block a user