From f26082dcdeb17357c4ca2adfc89a6b98fa3fe41e Mon Sep 17 00:00:00 2001 From: DutchJavaDev Date: Mon, 6 Apr 2026 18:45:19 +0000 Subject: [PATCH] why even uncomment this lollllolol --- MyMusicBoxApi/service/playlist.go | 2 +- MyMusicBoxApi/update | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MyMusicBoxApi/service/playlist.go b/MyMusicBoxApi/service/playlist.go index a2ff3c7..d351407 100644 --- a/MyMusicBoxApi/service/playlist.go +++ b/MyMusicBoxApi/service/playlist.go @@ -114,7 +114,7 @@ func downloadPlaylist( for id := range downloadCount { name := names[id] - if canDownload(name) { + if canDownload(name) && !existInArchive(archiveFileName, ids[id]) { childTask, _ := tasklogTable.CreateChildTaskLog(parentTask) diff --git a/MyMusicBoxApi/update b/MyMusicBoxApi/update index bcb93c4..0a74b36 100755 --- a/MyMusicBoxApi/update +++ b/MyMusicBoxApi/update @@ -38,9 +38,9 @@ cp selenium/* "$COOKIES_FOLDER" echo "=== Updating executable ===" go build -trimpath -buildvcs=false -ldflags="-s -w" -o "$RELEASE_FOLDER" -# echo "=== Reducing executable size ===" -# cd "$RELEASE_FOLDER" -# upx --best --lzma musicboxapi +echo "=== Reducing executable size ===" +cd "$RELEASE_FOLDER" +upx --best --lzma musicboxapi echo "=== Restarting mymusic service ===" sudo systemctl stop mymusic || echo "Service 'mymusic' was not running."