mirror of
https://github.com/zhaarey/apple-music-downloader.git
synced 2025-10-23 15:11:05 +00:00
add contentRating for meta
This commit is contained in:
7
main.go
7
main.go
@@ -1387,6 +1387,13 @@ func rip(albumId string, token string, storefront string, userToken string) erro
|
||||
tags := []string{
|
||||
fmt.Sprintf("lyrics=%s", lrc),
|
||||
}
|
||||
if track.Attributes.ContentRating=="explicit"{
|
||||
tags = append(tags, "rating=1")
|
||||
}else if track.Attributes.ContentRating=="clean"{
|
||||
tags = append(tags, "rating=2")
|
||||
}else{
|
||||
tags = append(tags, "rating=0")
|
||||
}
|
||||
if config.EmbedCover {
|
||||
if strings.Contains(albumId, "pl.") && config.DlAlbumcoverForPlaylist {
|
||||
err = writeCover(sanAlbumFolder,track.ID, track.Attributes.Artwork.URL)
|
||||
|
||||
Reference in New Issue
Block a user