Skip to content

Commit f26082d

Browse files
committed
why even uncomment this lollllolol
1 parent e0dcd1f commit f26082d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

MyMusicBoxApi/service/playlist.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func downloadPlaylist(
114114

115115
for id := range downloadCount {
116116
name := names[id]
117-
if canDownload(name) {
117+
if canDownload(name) && !existInArchive(archiveFileName, ids[id]) {
118118

119119
childTask, _ := tasklogTable.CreateChildTaskLog(parentTask)
120120

MyMusicBoxApi/update

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ cp selenium/* "$COOKIES_FOLDER"
3838
echo "=== Updating executable ==="
3939
go build -trimpath -buildvcs=false -ldflags="-s -w" -o "$RELEASE_FOLDER"
4040

41-
# echo "=== Reducing executable size ==="
42-
# cd "$RELEASE_FOLDER"
43-
# upx --best --lzma musicboxapi
41+
echo "=== Reducing executable size ==="
42+
cd "$RELEASE_FOLDER"
43+
upx --best --lzma musicboxapi
4444

4545
echo "=== Restarting mymusic service ==="
4646
sudo systemctl stop mymusic || echo "Service 'mymusic' was not running."

0 commit comments

Comments
 (0)