Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaarey committed Feb 11, 2025
2 parents 0e181e2 + 0227b4c commit f7fcf41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ func downloadTrack(trackNum int, trackTotal int, meta *structs.AutoGenerated, tr

//mv dl dev
if track.Type == "music-videos" {
if mediaUserToken == "" || len(mediaUserToken) <= 10 {
if len(mediaUserToken) <= 50 {
fmt.Println("meida-user-token is not set, skip MV dl")
counter.Success++
return
Expand Down Expand Up @@ -572,7 +572,7 @@ func downloadTrack(trackNum int, trackTotal int, meta *structs.AutoGenerated, tr

//get lrc
var lrc string = ""
if mediaUserToken != "" && len(mediaUserToken) > 10 {
if len(mediaUserToken) > 50 {
ttml, err := getSongLyrics(track.ID, storefront, token, mediaUserToken)
if err != nil {
fmt.Println("Failed to get lyrics")
Expand Down Expand Up @@ -613,7 +613,7 @@ func downloadTrack(trackNum int, trackTotal int, meta *structs.AutoGenerated, tr
return
}
if needDlAacLc {
if mediaUserToken == "" || len(mediaUserToken) <= 10 {
if len(mediaUserToken) <= 50 {
fmt.Println("Invalid media-user-token")
counter.Error++
return
Expand Down Expand Up @@ -1159,7 +1159,7 @@ func main() {
continue
}
counter.Total++
if Config.MediaUserToken == "" || len(Config.MediaUserToken) <= 10 {
if len(Config.MediaUserToken) <= 50 {
fmt.Println("meida-user-token is not set, skip MV dl")
counter.Success++
continue
Expand Down

0 comments on commit f7fcf41

Please sign in to comment.