Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Jan 16, 2025
1 parent 6fe8ff3 commit 863ae04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions music_assistant/providers/spotify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
from music_assistant.helpers.json import json_loads
from music_assistant.helpers.process import AsyncProcess, check_output
from music_assistant.helpers.throttle_retry import ThrottlerManager, throttle_with_retries
from music_assistant.helpers.util import lock, parse_title_and_version
from music_assistant.helpers.util import TimedAsyncGenerator, lock, parse_title_and_version
from music_assistant.models.music_provider import MusicProvider

from .helpers import get_librespot_binary
Expand Down Expand Up @@ -608,7 +608,7 @@ async def _read_stderr():
if stderr:
log_reader = asyncio.create_task(_read_stderr())

async for chunk in librespot_proc.iter_any(chunk_size):
async for chunk in TimedAsyncGenerator(librespot_proc.iter_any(chunk_size), 20):
yield chunk
bytes_received += len(chunk)
if stderr:
Expand Down

0 comments on commit 863ae04

Please sign in to comment.