From fd5b449db9acb4926a6dced412b2352ee116382c Mon Sep 17 00:00:00 2001 From: itouakirai <85016486+itouakirai@users.noreply.github.com> Date: Sun, 15 Sep 2024 09:22:39 +0800 Subject: [PATCH] Update main.go --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index ae30d1d..9233dd0 100644 --- a/main.go +++ b/main.go @@ -1705,6 +1705,7 @@ func rip(albumId string, token string, storefront string, userToken string) erro if exists { fmt.Println("Track already exists locally.") oktrackNum += 1 + okDict[albumId] = append(okDict[albumId], trackNum) continue } m4aexists, err := fileExists(m4atrackPath) @@ -1714,6 +1715,7 @@ func rip(albumId string, token string, storefront string, userToken string) erro if m4aexists { fmt.Println("Track already exists locally.") oktrackNum += 1 + okDict[albumId] = append(okDict[albumId], trackNum) continue } @@ -1823,6 +1825,7 @@ func rip(albumId string, token string, storefront string, userToken string) erro fmt.Printf("Successfully processed and deleted %s\n", filepath.Base(trackPath)) } oktrackNum += 1 + okDict[albumId] = append(okDict[albumId], trackNum) } } return err