Remove accidental paste stuff
authorJonathan <jonathan@bangert.dk>
Fri, 21 Jul 2023 15:56:59 +0000 (17:56 +0200)
committerGitHub <noreply@github.com>
Fri, 21 Jul 2023 15:56:59 +0000 (17:56 +0200)
music_assistant/server/providers/deezer/__init__.py

index e0e8cb265fef9a7ee8fd6c562c010d30222ae694..091ac8661a7c8780557819bd242733a5c2ec2022 100644 (file)
@@ -402,7 +402,7 @@ class DeezerProvider(MusicProvider):  # pylint: disable=W0223
     ) -> AsyncGenerator[bytes, None]:
         """Return the audio stream for the provider item."""
         blowfish_key = self.get_blowfish_key(streamdetails.item_id)
-        chunk_index = 0available_countries
+        chunk_index = 0
         timeout = ClientTimeout(total=0, connect=30, sock_read=600)
         headers = {}
         if seek_position and streamdetails.size:
@@ -413,7 +413,7 @@ class DeezerProvider(MusicProvider):  # pylint: disable=W0223
 
         buffer = bytearray()
         async with self.mass.http_session.get(
-            streamdetails.data, headers=headers, timeout=timeoutOh yeah okay
+            streamdetails.data, headers=headers, timeout=timeout
         ) as resp:
             async for chunk in resp.content.iter_chunked(2048):
                 buffer += chunk
@@ -545,7 +545,7 @@ class DeezerProvider(MusicProvider):  # pylint: disable=W0223
             sort_name=track.title_short,
             duration=track.duration,
             artists=[
-                ItemMapping(available_countries
+                ItemMapping(
                     MediaType.ARTIST,
                     str(track.artist.id),
                     self.instance_id,