Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MyMusicBoxApi/service/playlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 3 additions & 3 deletions MyMusicBoxApi/update
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
Loading