[BUG] AudioMuse-AI tries to download Spotify tracks for analysis (Lyrion + Spotty plugin)
Describe the bug
To Reproduce When the integration between Lyrion & Spotify is active, Spotify tracks get added to the Lyrion DB, but of course aren't available for download
Log Extract
[INFO]-[29-09-2025 11-13-35]-[AlbumTask-21ad3743-82be-4bd9-b1d9-b664f60eb741-Meydan] Fetching tracks for album: Meydan
[INFO]-[29-09-2025 11-13-35]-Attempting to fetch tracks for album ID: 56722
[INFO]-[29-09-2025 11-13-35]-Lyrion API Raw Track Response for Album 56722: {'rescan': 1, 'titles_loop': [{'id': 2486130, 'title': 'Boyun eğmem', 'genre': 'Spotify', 'artist': 'Meral Polat', 'album': 'Meydan', 'duration': 231.746}, {'id': 2486124, 'title': 'Can', 'genre': 'Spotify', 'artist': 'Meral Polat', 'album': 'Meydan', 'duration': 271.12}, {'id': 2486131, 'title': 'Dost', 'genre': 'Spotify', 'artist': 'Meral Polat', 'album': 'Meydan', 'duration': 272.786}, {'id': 2486123, 'title': 'Govend', 'genre': 'Spotify', 'artist': 'Meral Polat', 'album': 'Meydan', 'duration': 259.693}, {'id': 2486122, 'title': 'Meydana Gel', 'genre': 'Spotify', 'artist': 'Meral Polat', 'album': 'Meydan', 'duration': 257}, {'id': 2486129, 'title': 'Xwedawendno', 'genre': 'Spotify', 'artist': 'Meral Polat', 'album': 'Meydan', 'duration': 506.586}, {'id': 2486127, 'title': 'Çenek', 'genre': 'Spotify', 'artist': 'Meral Polat', 'album': 'Meydan', 'duration': 227.946}, {'id': 2486126, 'title': 'Çiya Icaro', 'genre': 'Spotify', 'artist': 'Meral Polat', 'album': 'Meydan', 'duration': 267.76}, {'id': 2486128, 'title': 'Çocuklar', 'genre': 'Spotify', 'artist': 'Meral Polat', 'album': 'Meydan', 'duration': 281.56}, {'id': 2486125, 'title': 'Ötme bülbül ötme', 'genre': 'Spotify', 'artist': 'Meral Polat', 'album': 'Meydan', 'duration': 271.413}], 'count': 10}
[INFO]-[29-09-2025 11-13-35]-[AlbumTask-21ad3743-82be-4bd9-b1d9-b664f60eb741-Meydan] Analyzing track: Boyun eğmem by Meral Polat (1/10)
[INFO]-[29-09-2025 11-13-35]-Attempting to download from URL: http://192.168.3.181:9000/music/2486130/download
[ERROR]-[29-09-2025 11-18-35]-Failed to download Lyrion track Unknown: HTTPConnectionPool(host='192.168.3.181', port=9000): Read timed out. (read timeout=300)
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 534, in _make_request
response = conn.getresponse()
File "/usr/local/lib/python3.10/dist-packages/urllib3/connection.py", line 565, in getresponse
httplib_response = super().getresponse()
File "/usr/lib/python3.10/http/client.py", line 1375, in getresponse
response.begin()
File "/usr/lib/python3.10/http/client.py", line 318, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.10/http/client.py", line 279, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.10/socket.py", line 705, in readinto
return self._sock.recv_into(b)
TimeoutError: timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 644, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 841, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.10/dist-packages/urllib3/util/retry.py", line 474, in increment
raise reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.10/dist-packages/urllib3/util/util.py", line 39, in reraise
raise value
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 787, in urlopen
response = self._make_request(
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 536, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 367, in _raise_timeout
raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='192.168.3.181', port=9000): Read timed out. (read timeout=300)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/tasks/mediaserver.py", line 536, in _lyrion_download_track
with s.get(download_url, stream=True, timeout=REQUESTS_TIMEOUT) as r:
File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 690, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='192.168.3.181', port=9000): Read timed out. (read timeout=300)
[INFO]-[29-09-2025 11-18-35]-[AlbumTask-21ad3743-82be-4bd9-b1d9-b664f60eb741-Meydan] Analyzing track: Can by Meral Polat (2/10)
[INFO]-[29-09-2025 11-18-35]-Attempting to download from URL: http://192.168.3.181:9000/music/2486124/download
[INFO]-[29-09-2025 11-22-13]-Worker 2badb571fa08476a98e7090ba495c046: cleaning registries for queue: high
[ERROR]-[29-09-2025 11-23-35]-Failed to download Lyrion track Unknown: HTTPConnectionPool(host='192.168.3.181', port=9000): Read timed out. (read timeout=300)
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 534, in _make_request
response = conn.getresponse()
File "/usr/local/lib/python3.10/dist-packages/urllib3/connection.py", line 565, in getresponse
httplib_response = super().getresponse()
File "/usr/lib/python3.10/http/client.py", line 1375, in getresponse
response.begin()
File "/usr/lib/python3.10/http/client.py", line 318, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.10/http/client.py", line 279, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.10/socket.py", line 705, in readinto
return self._sock.recv_into(b)
TimeoutError: timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 644, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 841, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.10/dist-packages/urllib3/util/retry.py", line 474, in increment
raise reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.10/dist-packages/urllib3/util/util.py", line 39, in reraise
raise value
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 787, in urlopen
response = self._make_request(
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 536, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 367, in _raise_timeout
raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='192.168.3.181', port=9000): Read timed out. (read timeout=300)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/tasks/mediaserver.py", line 536, in _lyrion_download_track
with s.get(download_url, stream=True, timeout=REQUESTS_TIMEOUT) as r:
File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 690, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='192.168.3.181', port=9000): Read timed out. (read timeout=300)
[INFO]-[29-09-2025 11-23-35]-[AlbumTask-21ad3743-82be-4bd9-b1d9-b664f60eb741-Meydan] Analyzing track: Dost by Meral Polat (3/10)
[INFO]-[29-09-2025 11-23-35]-Attempting to download from URL: http://192.168.3.181:9000/music/2486131/download
[ERROR]-[29-09-2025 11-28-35]-Failed to download Lyrion track Unknown: HTTPConnectionPool(host='192.168.3.181', port=9000): Read timed out. (read timeout=300)
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 534, in _make_request
response = conn.getresponse()
File "/usr/local/lib/python3.10/dist-packages/urllib3/connection.py", line 565, in getresponse
httplib_response = super().getresponse()
File "/usr/lib/python3.10/http/client.py", line 1375, in getresponse
response.begin()
File "/usr/lib/python3.10/http/client.py", line 318, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.10/http/client.py", line 279, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.10/socket.py", line 705, in readinto
return self._sock.recv_into(b)
TimeoutError: timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 644, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 841, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.10/dist-packages/urllib3/util/retry.py", line 474, in increment
raise reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.10/dist-packages/urllib3/util/util.py", line 39, in reraise
raise value
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 787, in urlopen
response = self._make_request(
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 536, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 367, in _raise_timeout
raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='192.168.3.181', port=9000): Read timed out. (read timeout=300)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/tasks/mediaserver.py", line 536, in _lyrion_download_track
with s.get(download_url, stream=True, timeout=REQUESTS_TIMEOUT) as r:
File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 690, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='192.168.3.181', port=9000): Read timed out. (read timeout=300)
Expected behavior Skip Spotify tracks
Additional Info These songs have "Spotty" as file format in the Lyrion DB
Hi, I look from your log that the song from this plugin seems to have as genre "Spotify".
I implemented in :devel a check that skip the song with this genre. The image should be build and ready to test in around 20 minutes.
Can you download :devel and let me know if with this patch the issue is solved? Thanks!
Edit: fix is now ready to be downloaded in :devel
Hi, I look from your log that the song from this plugin seems to have as genre "Spotify".
I implemented in
:devela check that skip the song with this genre. The image should be build and ready to test in around 20 minutes.Can you download
:develand let me know if with this patch the issue is solved? Thanks!Edit: fix is now ready to be downloaded in
:devel
Pulled the :devel branch, and that seems to do the trick. I see actual local music being analyzed
I confirm your fix solved this issue completely