警告时添加图标

pull/34/head
itouakirai 2 months ago committed by GitHub
parent 330d0a1f89
commit e607240dca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      main.go

@ -1616,12 +1616,12 @@ func rip(albumId string, token string, storefront string, userToken string) erro
fmt.Printf("Track %d of %d:\n", trackNum, trackTotal) fmt.Printf("Track %d of %d:\n", trackNum, trackTotal)
manifest, err := getInfoFromAdam(track.ID, token, storefront) manifest, err := getInfoFromAdam(track.ID, token, storefront)
if err != nil { if err != nil {
fmt.Println("Failed to get manifest.\n", err) fmt.Println("\u26A0 Failed to get manifest:", err)
counter.NotSong++ counter.NotSong++
continue continue
} }
if manifest.Attributes.ExtendedAssetUrls.EnhancedHls == "" { if manifest.Attributes.ExtendedAssetUrls.EnhancedHls == "" {
fmt.Println("Unavailable.") fmt.Println("\u26A0 Unavailable.")
counter.Unavailable++ counter.Unavailable++
continue continue
} }
@ -1734,7 +1734,7 @@ func rip(albumId string, token string, storefront string, userToken string) erro
trackUrl, keys, err := extractMedia(manifest.Attributes.ExtendedAssetUrls.EnhancedHls) trackUrl, keys, err := extractMedia(manifest.Attributes.ExtendedAssetUrls.EnhancedHls)
if err != nil { if err != nil {
fmt.Println("Failed to extract info from manifest.\n", err) fmt.Println("\u26A0 Failed to extract info from manifest:", err)
counter.Unavailable++ counter.Unavailable++
continue continue
} }

Loading…
Cancel
Save