commit
603fc4acdd
@ -3,7 +3,8 @@ embed-lrc: true
|
|||||||
save-lrc-file: false
|
save-lrc-file: false
|
||||||
embed-cover: true
|
embed-cover: true
|
||||||
cover-size: 5000x5000
|
cover-size: 5000x5000
|
||||||
cover-format: jpg
|
cover-format: jpg #jpg or png
|
||||||
alac-save-folder: AM-DL downloads
|
alac-save-folder: AM-DL downloads
|
||||||
atmos-save-folder: AM-DL-Atmos downloads
|
atmos-save-folder: AM-DL-Atmos downloads
|
||||||
check: ""
|
check: ""
|
||||||
|
force-api: false
|
||||||
|
9
main.go
9
main.go
@ -45,6 +45,7 @@ type Config struct {
|
|||||||
CoverFormat string `yaml:"cover-format"`
|
CoverFormat string `yaml:"cover-format"`
|
||||||
AlacSaveFolder string `yaml:"alac-save-folder"`
|
AlacSaveFolder string `yaml:"alac-save-folder"`
|
||||||
AtmosSaveFolder string `yaml:"atmos-save-folder"`
|
AtmosSaveFolder string `yaml:"atmos-save-folder"`
|
||||||
|
ForceApi bool `yaml:"force-api"`
|
||||||
Check string `yaml:"check"`
|
Check string `yaml:"check"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1249,6 +1250,12 @@ func rip(albumId string, token string, storefront string, userToken string) erro
|
|||||||
if string(Checkbody) != "no_found"{
|
if string(Checkbody) != "no_found"{
|
||||||
manifest.Attributes.ExtendedAssetUrls.EnhancedHls=string(Checkbody)
|
manifest.Attributes.ExtendedAssetUrls.EnhancedHls=string(Checkbody)
|
||||||
fmt.Println("Found m3u8 from API")
|
fmt.Println("Found m3u8 from API")
|
||||||
|
} else {
|
||||||
|
if config.ForceApi {
|
||||||
|
fmt.Println(" Not Found m3u8 from API, Skip")
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
fmt.Println(" Not Found m3u8 from API")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2059,4 +2066,4 @@ type SongLyrics struct {
|
|||||||
} `json:"playParams"`
|
} `json:"playParams"`
|
||||||
} `json:"attributes"`
|
} `json:"attributes"`
|
||||||
} `json:"data"`
|
} `json:"data"`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user