mirror of
https://github.com/zhaarey/apple-music-downloader.git
synced 2025-10-23 15:11:05 +00:00
Update main.go
This commit is contained in:
3
main.go
3
main.go
@@ -1705,6 +1705,7 @@ func rip(albumId string, token string, storefront string, userToken string) erro
|
|||||||
if exists {
|
if exists {
|
||||||
fmt.Println("Track already exists locally.")
|
fmt.Println("Track already exists locally.")
|
||||||
oktrackNum += 1
|
oktrackNum += 1
|
||||||
|
okDict[albumId] = append(okDict[albumId], trackNum)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
m4aexists, err := fileExists(m4atrackPath)
|
m4aexists, err := fileExists(m4atrackPath)
|
||||||
@@ -1714,6 +1715,7 @@ func rip(albumId string, token string, storefront string, userToken string) erro
|
|||||||
if m4aexists {
|
if m4aexists {
|
||||||
fmt.Println("Track already exists locally.")
|
fmt.Println("Track already exists locally.")
|
||||||
oktrackNum += 1
|
oktrackNum += 1
|
||||||
|
okDict[albumId] = append(okDict[albumId], trackNum)
|
||||||
continue
|
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))
|
fmt.Printf("Successfully processed and deleted %s\n", filepath.Base(trackPath))
|
||||||
}
|
}
|
||||||
oktrackNum += 1
|
oktrackNum += 1
|
||||||
|
okDict[albumId] = append(okDict[albumId], trackNum)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user