From 442be6d21b1b16c09c7ce65883c43281a20af8a9 Mon Sep 17 00:00:00 2001 From: "cool.gitter.choco" Date: Tue, 28 Jan 2025 12:32:30 -0600 Subject: [PATCH] added auto-retry --- .gitignore | 3 +++ docker-compose.yaml | 2 +- .../__pycache__/__init__.cpython-312.pyc | Bin 145 -> 146 bytes .../__pycache__/credentials.cpython-312.pyc | Bin 6604 -> 6605 bytes .../utils/__pycache__/search.cpython-312.pyc | Bin 608 -> 609 bytes static/js/app.js | 2 ++ 6 files changed, 6 insertions(+), 1 deletion(-) mode change 100755 => 100644 routes/utils/__pycache__/__init__.cpython-312.pyc mode change 100755 => 100644 routes/utils/__pycache__/credentials.cpython-312.pyc mode change 100755 => 100644 routes/utils/__pycache__/search.cpython-312.pyc diff --git a/.gitignore b/.gitignore index 4df2460..d50dc38 100755 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/docker-compose.yaml b/docker-compose.yaml index f02dd2a..5ba0057 100755 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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 | \ No newline at end of file + - PGID=1000 # Replace with your desired group ID | diff --git a/routes/utils/__pycache__/__init__.cpython-312.pyc b/routes/utils/__pycache__/__init__.cpython-312.pyc old mode 100755 new mode 100644 index ac1ba2807a1339cb8e7c304f714fee9d1c599a1f..9e8d61186f469d9a04b713a0059b6baaa0d4880e GIT binary patch delta 27 hcmbQpIEj(_G%qg~0}vSenlX{vn9*>ez4*jX8vt7O2J8R; delta 27 hcmbQlIFXV2G%qg~0}w2&n=+Bxn9*ROz4*j%YXDl`2H^kz diff --git a/routes/utils/__pycache__/credentials.cpython-312.pyc b/routes/utils/__pycache__/credentials.cpython-312.pyc old mode 100755 new mode 100644 index e074b6bfcde02b67f1d544c5567117396919a084..83bcb6a4d4bef65df58e7a113428856a4b14b6ff GIT binary patch delta 50 zcmX?OeAbxzG%qg~0}vSenz51l6|;nienx(7s(wX&a(-TZa)y3!L4HYQRcg^@9+m^5 E0H-t&U;qFB delta 49 zcmX?We8!mjG%qg~0}!nGIejDdD`s(H{fzwFRQ-zlc=G%qg~0}!MYPus}t$0)9+pOK%Ns$Y?xoS&DUoS|P_kYAEnl{&eQ@dE%| Cg%BM8 diff --git a/static/js/app.js b/static/js/app.js index d63e3b0..7f7728c 100755 --- a/static/js/app.js +++ b/static/js/app.js @@ -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':