added auto-retry

This commit is contained in:
cool.gitter.choco
2025-01-28 12:32:30 -06:00
parent bfe0610849
commit 442be6d21b
6 changed files with 6 additions and 1 deletions

3
.gitignore vendored
View File

@@ -21,3 +21,6 @@ routes/utils/__pycache__/credentials.cpython-312.pyc
routes/utils/__pycache__/search.cpython-312.pyc
routes/utils/__pycache__/credentials.cpython-312.pyc
routes/utils/__pycache__/search.cpython-312.pyc
routes/utils/__pycache__/__init__.cpython-312.pyc
routes/utils/__pycache__/credentials.cpython-312.pyc
routes/utils/__pycache__/search.cpython-312.pyc

View File

@@ -10,4 +10,4 @@ services:
image: cooldockerizer93/spotizerr
environment:
- PUID=1000 # Replace with your desired user ID | Remove both if you want to run as root (not recommended, might result in unreadable files)
- PGID=1000 # Replace with your desired group ID |
- PGID=1000 # Replace with your desired group ID |

BIN
routes/utils/__pycache__/__init__.cpython-312.pyc Executable file → Normal file

Binary file not shown.

BIN
routes/utils/__pycache__/credentials.cpython-312.pyc Executable file → Normal file

Binary file not shown.

BIN
routes/utils/__pycache__/search.cpython-312.pyc Executable file → Normal file

Binary file not shown.

View File

@@ -617,6 +617,8 @@ function getStatusMessage(data) {
return `Finished: ${data.song} by ${data.artist}`;
case 'initializing':
return `Initializing ${data.type} download for ${data.album || data.artist}...`;
case 'retrying':
return `Track ${data.song} by ${data.artist} failed, retrying (${data.retries}/${data.max_retries}) in ${data.seconds_left}s`;
case 'error':
return `Error: ${data.message || 'Unknown error'}`;
case 'complete':